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

  1. Each name is stored in the PhoneBk class as a string.  The typedef
  2. statement defines a type "String".  Each "String" object
  3. can contain up to 19 characters plus a string terminator.  A more
  4. elegant way to handle strings in C++ would be to define a
  5. string class.  String member functions could be used instead
  6. of the awkward standard functions strcmp() and strcpy().
  7. To keep this implementation as simple as possible,
  8. PhoneBk uses the typedef for strings rather than another class.
  9.