A
ASiF
Hi i am completely novice at programming, would appreciate some help.
The program needs to be able to take a set of up to a 100 numbers (between
1 to 9) "inputted"
at the prompt and then assign those number indvidually to seperate
variable and then pass on to another function which will perform other
operations on the numbers.
char line[200]
printf ("Enter the numbers: "); //numbers would be seperated by space
fgets (gridEmulation, sizeof(gridEmulation), stdin); //gets in the numbers
here i get stuck, i was thinking of using sscanf to turn the input vales
back to individual numbers, but how do i assign the number when i dont
even know how many there are going to be.
TIA
ASiF
The program needs to be able to take a set of up to a 100 numbers (between
1 to 9) "inputted"
at the prompt and then assign those number indvidually to seperate
variable and then pass on to another function which will perform other
operations on the numbers.
char line[200]
printf ("Enter the numbers: "); //numbers would be seperated by space
fgets (gridEmulation, sizeof(gridEmulation), stdin); //gets in the numbers
here i get stuck, i was thinking of using sscanf to turn the input vales
back to individual numbers, but how do i assign the number when i dont
even know how many there are going to be.
TIA
ASiF