typecast string index char into int c++ code example
Example: converting char to int in c++
#include <sstream>
using namespace std;
int main()
{
stringstream str;
str << "1";
double x;
str >> x;
}
#include <sstream>
using namespace std;
int main()
{
stringstream str;
str << "1";
double x;
str >> x;
}