how to convert a string to a double c++

C++
double new = std::stod(string);
Source

Also in C++: