Answers for "converting char to int in c++"

C++
1

char* to int in cpp

int x = std::stoi("42")
Posted by: Guest on June-24-2020
-4

converting char to int in c++

#include <sstream>

using namespace std;

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

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

Browse Popular Code Answers by Language