home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH09 / A091925.TXT < prev    next >
Encoding:
Text File  |  1993-10-28  |  475 b   |  9 lines

  1. Here, the subscript operator is overloaded.  The client code uses
  2. this operator to find the letter grade that is associated with a
  3. numeric grade.  Notice that the argument is an integer.  The
  4. overloaded subscript operator searches the array "GradeList".
  5. It tests whether or not the value of the argument falls in the
  6. range of numbers specified by the LongPair object in each element
  7. of the array.  The return value is a pointer to a character that
  8. is a letter grade.
  9.