Answers for "convert char or string to int or double"

C++
-4

convert char or string to int or double

#include <sstream>

using namespace std;

int main()
{
    stringstream str;
    
    str << "1";

    double x;
    str >> x;
}
Posted by: Guest on March-21-2020

Code answers related to "convert char or string to int or double"

Browse Popular Code Answers by Language