home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH05 / A052103.WAV (.mp3) < prev    next >
Waveform Audio File Format  |  1993-11-12  |  360.4 KB  |  1 channel  |  11,025 sample rate  |  33 seconds
Transcription: Each name is stored in the PhoneBook class as a string. The typedef statement defines a type string. Each string object can contain up to 19 characters plus a string terminator. A more elegant way to handle strings in C++ would be to define a string class. String member functions could be used instead of the awkward standard functions string compare and string copy. To keep this implementation as simple as possible, The phone book uses the typedef for strings rather than another class.