home *** CD-ROM | disk | FTP | other *** search
- This line compares two strings: a name already stored in the
- PhoneBk object and the name specified by the argument "who". As
- the function strcmp() requires two arguments of type char*, each
- entry in "names" must be cast from the address of a String to a
- char*. This syntax is not unusual in C++. If the names are the
- same, the string compare function returns 0, or false. The loop
- continues until every entry in "names" has been checked, or until
- a matching name is found.
-