From eef3e020c21d2fdba19aab0daf1b99f8de0a16fe Mon Sep 17 00:00:00 2001 From: Betsy McPhail Date: Tue, 18 Jun 2019 10:49:40 -0400 Subject: Help: Populate tutorial guide text Migrate tutorial text from individual `directions.txt` files to the main tutorial document. Add some comments to source code to provide anchors for inclusion. --- Help/guide/tutorial/Step5/tutorial.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Help/guide/tutorial/Step5/tutorial.cxx') diff --git a/Help/guide/tutorial/Step5/tutorial.cxx b/Help/guide/tutorial/Step5/tutorial.cxx index c2b89dfd4e..8156a9c17a 100644 --- a/Help/guide/tutorial/Step5/tutorial.cxx +++ b/Help/guide/tutorial/Step5/tutorial.cxx @@ -5,6 +5,7 @@ #include "TutorialConfig.h" +// should we include the MathFunctions header? #ifdef USE_MYMATH # include "MathFunctions.h" #endif @@ -12,6 +13,7 @@ int main(int argc, char* argv[]) { if (argc < 2) { + // report version std::cout << argv[0] << " Version " << Tutorial_VERSION_MAJOR << "." << Tutorial_VERSION_MINOR << std::endl; std::cout << "Usage: " << argv[0] << " number" << std::endl; @@ -20,6 +22,7 @@ int main(int argc, char* argv[]) double inputValue = std::stod(argv[1]); + // which square root function should we use? #ifdef USE_MYMATH double outputValue = mysqrt(inputValue); #else -- cgit v1.2.1