C to C++ Program Options

Hello I have this code I've been working on and I was wondering if anyone had any suggestions for me in regards to not using atoi. I don't like mixing C with C++ but I'm stumped on the work around.

Heres the psuedo if you need more of the source let me know:
.
.
.
char onescore[26];

while(!inputFile.eof())
{
inputFile.getline(onescore,26,',');
int score = atoi(onescore); //Convert str to int

if(score==200) arrayRange[7]++;
else arrayRange[score/25]++;
}
.
.
.
google stringstreams;
they can let you convert strings to int and vice versa.
ex:
1
2
3
4
std::string a = "140";
std::istringstream buffer(a);
int value = 0;
buffer >> value;
Topic archived. No new replies allowed.