Revisions: 08/24/01; 12/07/04, 08/20/06 -- format changes

CHAPTER 22 — Arrays

A Hat

Many programs deal with large amounts of data. For example, a program that works with images might deal with millions of numbers. If each number were kept in its own variable, there would be millions of variables, each with its own name. This would be awkward. QBasic can use an array to store a large amount of data, avoiding the need for so many variables.

Chapter Topics:


Imagine that you had a collection of 500 hats, and that you wanted to name each hat. What scheme could you use to name your hats?