diff options
Diffstat (limited to 'Help/guide/tutorial/Step2/tutorial.cxx')
| -rw-r--r-- | Help/guide/tutorial/Step2/tutorial.cxx | 8 | 
1 files changed, 8 insertions, 0 deletions
diff --git a/Help/guide/tutorial/Step2/tutorial.cxx b/Help/guide/tutorial/Step2/tutorial.cxx index 53b0810..f83aa7e 100644 --- a/Help/guide/tutorial/Step2/tutorial.cxx +++ b/Help/guide/tutorial/Step2/tutorial.cxx @@ -5,6 +5,10 @@  #include "TutorialConfig.h" +// TODO 11: Only include MathFunctions if MY_MATH is defined + +// TODO 5: Include MathFunctions.h +  int main(int argc, char* argv[])  {    if (argc < 2) { @@ -18,6 +22,10 @@ int main(int argc, char* argv[])    // convert input to double    const double inputValue = std::stod(argv[1]); +  // TODO 12: Use mysqrt if MY_MATH is defined and sqrt otherwise + +  // TODO 6: Replace sqrt with mysqrt +    // calculate square root    const double outputValue = sqrt(inputValue);    std::cout << "The square root of " << inputValue << " is " << outputValue  | 
