Answers for "how to convert char to integer c++"

C++
1

char* to int in cpp

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

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

Code answers related to "how to convert char to integer c++"

Browse Popular Code Answers by Language