home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH08 / A08123.TXT < prev    next >
Encoding:
Text File  |  1993-09-15  |  454 b   |  8 lines

  1. A container class must be able to access each item in the proper
  2. order.  In the List class, the function next() is an iterator.
  3. This function sets the position counter "current" to the next
  4. element in the array "list", or to the first element if the last
  5. has been passed.  An iterator class must know where to start
  6. iterating through the contained items.  Here, the member "list" is
  7. a pointer to the first element in an array of PhoneNum objects.
  8.