Hi.
Basically I need to input a string of numbers into an array. The user will input a string of < 20 numbers on one line such as "1263444545", and I want the program to save these as:
myArray[0] = 1;
myArray[1] = 2;
....
....
With the empty ones containing -1.
I think it uses the gets function. How can I implememnt thins?
Thanks for any help.
D
Basically I need to input a string of numbers into an array. The user will input a string of < 20 numbers on one line such as "1263444545", and I want the program to save these as:
myArray[0] = 1;
myArray[1] = 2;
....
....
With the empty ones containing -1.
I think it uses the gets function. How can I implememnt thins?
Thanks for any help.
D