home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH09 / A091926.WAV (.mp3) < prev    next >
Waveform Audio File Format  |  1993-11-02  |  342.9 KB  |  1 channel  |  11,025 sample rate  |  31 seconds
Transcription: Here, the subscript operator is overloaded for a second time. The client code uses this version of the operator to find the range of numbers that are associated with a letter grade. Notice that the letter grade is passed to the overloaded subscript operator as an argument of type char*. The overloaded subscript operator searches the array grade list for an element containing a letter grade that matches the argument. The return value of the operator is a long pair object containing number grades.