I've been working on some code to convert a string into a double but I am not allowed to use c_string. I have no idea where to start.I have tried stod like many sites have said but the program wont run. any tips to were to go.
std::string strDouble = "54.298"; // declare and initialize string with double part
std::stringstream ss(strDouble); // construct stringstream object with string
double myDouble;
ss >> myDouble; // extract from stream and put into double variable
std::cout << myDouble; // print double