D
danu
Hello all,
basically here's what I'm trying to do: I want to put 5, 10, -20 , 5 ,
20 in to array[0][MAX], and
-1, 5, 10, -2 into array[1][MAX] . All the input are coming through
stdin. How can I parse these values assuming that value sets are
separated by a blank line and all the inputs end with "EOF" character.
thanks for any help.
int array[MAX][MAX]
5 10 -20
5 20
-1 -5 -10 -2
basically here's what I'm trying to do: I want to put 5, 10, -20 , 5 ,
20 in to array[0][MAX], and
-1, 5, 10, -2 into array[1][MAX] . All the input are coming through
stdin. How can I parse these values assuming that value sets are
separated by a blank line and all the inputs end with "EOF" character.
thanks for any help.
int array[MAX][MAX]
5 10 -20
5 20
-1 -5 -10 -2