Hey, I'm having trouble with my program. The user is going to input a chain of ints and I need to scan these into an array. But the problem is I need to whenever there is a space I need it to scan into the next arrays value. like this...
they input 1 2 3 12 43
this would mean that the array would get the values:
a[0]=1
a[1]=2
a[2]=3
a[3]=12
a[4]=43
Does anyone know how I would do this?
Thanks,
Curtis