I need to parse a string of integers like this:
string line = "123456..etc";
I need every single digit converted to a number so I am doing something like this:
for (int i = 0; i < line.length(); i++)
result = atoi(&line[i]);
Instead of breaking the string up I get:
What is the best way to do this. Thank you very much ahead of time.