diff options
Diffstat (limited to 'Help/guide/tutorial/Consumer/consumer.cxx')
-rw-r--r-- | Help/guide/tutorial/Consumer/consumer.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Help/guide/tutorial/Consumer/consumer.cxx b/Help/guide/tutorial/Consumer/consumer.cxx new file mode 100644 index 0000000..ae7877b --- /dev/null +++ b/Help/guide/tutorial/Consumer/consumer.cxx @@ -0,0 +1,11 @@ +// A simple function that computes the square root of a number +#include <iostream> +#include <sstream> +#include <string> + +#include "MathFunctions.h" + +double string_square_root(std::string const& value) +{ + return mathfunctions::sqrt(std::stod(value)); +} |