array loop input question

Hey,

Im tryin to get a program goin that would allow a user to input 10 numbers and each of those numbers assigned to an array. The input has to be done in a loop, I was just wondering if there is a way to increment (array [] ++)? the spot in the array the number would be defined. I went through the tutorial on arrays but didnt find anything helpful, nor did the search prove helpful.

Any tips would be greatly appreciated.
You could do:

1
2
3
4
for (int i = 0; i < 10; i++)
{
      array[i] = stuff;
}
And I love these faqs on IO. You can learn a lot from the examples there and write simple while loop within the for that ensures valid data is entered.
http://www.parashift.com/c++-faq-lite/input-output.html
Topic archived. No new replies allowed.