home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH06 / A06168.TXT < prev    next >
Encoding:
Text File  |  1993-10-18  |  398 b   |  8 lines

  1. Duplicating every element in the two arrays requires a loop.  The
  2. loop makes a copy of every element in the arrays.  The copy
  3. constructor does not duplicate the two pointers, which point to
  4. the start of the arrays in the object oldbook.  Because the
  5. standard string manipulation function strcpy() is used to copy
  6. each name, types of each element in the "names" arrays must be
  7. cast to char*.
  8.