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

  1. Here, the subscript operator is overloaded for a second time.  The
  2. client code uses this version of the operator to find the range of
  3. numbers that are associated with a letter grade.  Notice that the
  4. letter grade is passed to the overloaded subscript operator as an
  5. argument of type char*.  The overloaded subscript operator
  6. searches the array "GradeList" for an element containing a letter
  7. grade that matches the argument.  The return value of the operator
  8. is a LongPair object containing number grades.
  9.