summaryrefslogtreecommitdiffstats
path: root/Help/guide/tutorial/Step11/tutorial.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Help/guide/tutorial/Step11/tutorial.cxx')
-rw-r--r--Help/guide/tutorial/Step11/tutorial.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Help/guide/tutorial/Step11/tutorial.cxx b/Help/guide/tutorial/Step11/tutorial.cxx
index 6acafd2..a4f44d5 100644
--- a/Help/guide/tutorial/Step11/tutorial.cxx
+++ b/Help/guide/tutorial/Step11/tutorial.cxx
@@ -1,5 +1,4 @@
// A simple program that computes the square root of a number
-#include <cmath>
#include <iostream>
#include <string>
@@ -16,7 +15,8 @@ int main(int argc, char* argv[])
return 1;
}
- double inputValue = std::stod(argv[1]);
+ // convert input to double
+ const double inputValue = std::stod(argv[1]);
const double outputValue = mathfunctions::sqrt(inputValue);