O'Reilly logo

Microsoft®C# Programming for the absolute beginner by Andy Harris

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Introducing Arrays

Although you can’t tell by looking at the Soccer game from the outside, the game relies heavily on lists of information. Lists are so useful that every major programming language supports them in one way or another. Of course, program-mers love fancy words and refuse to use the straightforward term list. They much prefer the more esoteric term array. An array is not complicated. It is simply a list of variables with the same name and the same type of data. If you’ve played golf (or even miniature golf), you’ve probably seen a scorecard that looks something like the one in Figure 8.2.

Figure 8.2. A golf scorecard is a good example of an array in everyday life.

A small golf course might have nine holes. These holes are usually numbered. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required