home *** CD-ROM | disk | FTP | other *** search
- Here, the subscript operator is overloaded. The client code uses
- this operator to find the letter grade that is associated with a
- numeric grade. Notice that the argument is an integer. The
- overloaded subscript operator searches the array "GradeList".
- It tests whether or not the value of the argument falls in the
- range of numbers specified by the LongPair object in each element
- of the array. The return value is a pointer to a character that
- is a letter grade.
-