How can I read in one number at a time from a string of numbers?
Something like this:
I want to read in the one, then the four, and so on. My first thought was to use get. Something like fin.get(number); But this statement only seems to accept a char, not an int. I am at a loss, short of reading in a char and converting to an int through 10 if statements. Any help would be great.