home *** CD-ROM | disk | FTP | other *** search
- These lines perform an insert operation, and are executed when the
- user enters the command "i". After the user has entered a
- person's name and telephone number, the application calls the
- member function insert() for the object "TelBook", and passes the
- name and number as arguments. The if statement tests the return
- value from the function insert() to detect whether or not the
- insertion was successful. If the return value is 0, an error
- message is printed.
-