An Example using Arrays

#include <iostream.h>

void main(void)
{
  int number[1000];
  int count;

  for (count = 0; count < 1000; count++)
  {
    cout << "Enter a number" << endl;
    cin >> number[count];
  }

  for (count = 999; count >= 0; count--)
    cout << number[count];
}
It is easy to see that by simply increasing the size of the array (the constant between the brackets []), you can easily store more data.

Previous page
Next page

Back to Lesson 11 Index
Back to Outline