home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH09 / A091925.WAV (.mp3) < prev    next >
Waveform Audio File Format  |  1993-11-02  |  322.2 KB  |  1 channel  |  11,025 sample rate  |  30 seconds
Transcription: Here, the subscript operator is overloaded. The client code uses this operator to find the letter grade that is associated with the numeric grade. Notice that the argument is an integer. The overloaded subscript operator searches the array grade list. It tests whether or not the value of the argument falls in the range of numbers specified by the long pair object in each element of the array. The return value is a pointer to a character that is a letter great.