I have a string xxxxxxxxxxxxxxxxxxx
I am reading the string into a structure of smaller strings, and using substr to parse it. I need to convert one of those string types to integer.
atoi is not working for me,. any ideas? it says cannot convert std::string to const char*
Thanks
#include<iostream>
#include<string>
using namespace std;
void main();
{
string s="453"
int y=atoi(S);
}