Hi:
What would be the best way to read a sequence of numbers that are separated by white spaces?
EX: "10 20 30 -1"
The -1 will be used to mark the end of the sequence.
I will use the numbers in the sequence to search through a 2D array full of numbers for where the sequence entered starts and ends (must be in a straight line). Or whether the sequence exists at all...
What would be the best way to do something like this?
Take all the values at once and put it into an array? (How would I go through the input and get the number of elements for the array?)
Or do I work with one value at a time somehow?


Thanks