Hi!
I want to read integers from a string of integers and store the individual
integers in an array. The problem is that I don't know how many integers in
the string would be otherwise I would have used sscanf with a format specifier.
For example:
Input:
10 20 12 4 2 1 4 2 12 32
1 4 1 2 4 12 4 1 4 1 5 7 3 4 6 2 3 5 23 52
2 5 7 23 6 23 42
The number of integers in a particular line is not fixed and it will vary
with each line of input.
I need to store the integers of particular line in a different array
for each line.
How do it? I am a beginner programmer. A help would be appreciated.