< previous page page_606 next page >

Page 606
0606-01.gif
Figure 11-7
salesAmt Array
Here is one last example.
const int NUM_STUDENTS = 10;

char grade[NUM_STUDENTS];   // Array of 10 student letter grades
int  idNumber;              // Student ID number (0 through 9)
The grade array is pictured in Figure 11-8. Values are shown in the components, which implies that some processing of the array has already occurred. Following are some simple examples showing how the array may be used.
0606-02.gif
Figure 11-8
grade Array with
Values

 
< previous page page_606 next page >