home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH05 / A052204.WAV (.mp3) < prev    next >
Waveform Audio File Format  |  1993-12-01  |  350.6 KB  |  1 channel  |  11,025 sample rate  |  32 seconds
Transcription: This line compares two strings, a name already stored in the phonebook object and the name specified by the argument WHO. As the function string compare requires two arguments of type char star, each entry in names must be cast from the address of a string to a char star. This syntax is not unusual in C++. If the names are the same, the string compare function returns zero or false. The loop continues until every entry in names has been checked or until a matching name is found.