Ok, I feel like an idiot, but...
How can i read in from a file with a string of numbers and characters, and put each into it's corresponding type?
For example, let's say I have the following input file:
and I want to read in each number, the WHOLE number (i.e. 21, not 2, as the 1st num) into an int, but read in each non-space char in as a char. seems I can't use isdigit() as I won't get a whole number, just something below 9.Code:21 43 + 21 21 - - 92 *