home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH05 / A052309.TXT < prev    next >
Encoding:
Text File  |  1993-11-29  |  471 b   |  9 lines

  1. These lines perform an insert operation, and are executed when the
  2. user enters the command "i".  After the user has entered a
  3. person's name and telephone number, the application calls the
  4. member function insert() for the object "TelBook", and passes the
  5. name and number as arguments.  The if statement tests the return
  6. value from the function insert() to detect whether or not the
  7. insertion was successful.  If the return value is 0, an error
  8. message is printed.
  9.