home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH09 / A09191.TXT < prev    next >
Encoding:
Text File  |  1993-11-25  |  346 b   |  7 lines

  1. The subscript operator is a binary operator.  The first operand
  2. appears before the brackets, and the second operand appears
  3. inside the brackets.  If you want to overload the subscript
  4. operator, you must overload it with a nonstatic member function.
  5. You will get a compile-time error if you try to overload it with
  6. another kind of function.
  7.