input all the numbers on a line?
Posted on 2002-05-05
I need a function that will input a whitespace-delimited list of numbers on a line, stopping at, on or after the newline (just let me know which).
Something that, for example, creates a dynamic 1-d array, and reads the entire line, and then puts the numbers into it?
Then I would need the framework to call it within the context of reading a file (this assumes the dynamic array implementation, but I guess I'll need something similar for whichever way I end up using)-
while (there are more lines to read )
//process that array