home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH05 / A052207.TXT < prev    next >
Encoding:
Text File  |  1993-11-08  |  504 b   |  9 lines

  1. These two statements add an entry to a PhoneBk object.  The
  2. counter numEntry is also the number of the next available slot in
  3. the data-member arrays.  A new telephone number is assigned to
  4. that element in the array "telnum".  The strcpy() function copies
  5. the name from the argument "who" into the array "names".  To be
  6. used as an argument of strcpy(), the element in the array "names"
  7. must be cast from a String to a char*.  The last step in adding
  8. an entry is to increment the counter numEntry.
  9.