1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-06-27 14:46:41 +08:00
CMake/Tests/Tutorial/Consumer/consumer.cxx
Betsy McPhail f2ddedfa58 Tests: Update CMake tutorial
Latest material from data.kitware.com -> Collections -> Courses -> CMake.
2019-01-27 16:03:00 -05:00

12 lines
253 B
C++

// 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));
}