home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH05 / A052207.WAV (.mp3) < prev    next >
Waveform Audio File Format  |  1993-11-12  |  367.0 KB  |  1 channel  |  11,025 sample rate  |  34 seconds
Transcription: These two statements add an entry to a phonebook object. The counter numEntry is also the number of the next available slot in the data member arrays. A new telephone number is assigned to that element in the array tellNumber. The string copy function copies the name from the argument who into the array names. To be used as an argument of string copy, the element in the array names must be cast from a string to a char stop. The last step in adding an entry is to increment the counter numentry.