home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / EXAMPLES / EX08062.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1993-10-01  |  1.2 KB  |  32 lines

  1. //  \EXAMPLES\EX08062.CPP
  2. //  member functions of PhoneNum
  3. //--------------------------------------------------------------
  4.  
  5. //  files in this example:
  6. // %F,15,EX08061.H%EX08061.H       definition of class String
  7. // %F,15,EX08062.H%EX08062.H       definition of class PhoneNum
  8. // %F,15,EX08063.H%EX08063.H       definition of List and ListIter
  9. // %F,15,EX08064.H%EX08064.H       definition of class PhoneBk
  10. // %F,15,EX08061.CPP%EX08061.CPP     member functions of class String
  11. // EX08062.CPP     this file
  12. // %F,15,EX08063.CPP%EX08063.CPP     member functions List and ListIter
  13. // %F,15,EX08064.CPP%EX08064.CPP     member functions of class PhoneBk
  14. // %F,15,EX0806.CPP%EX0806.CPP  main to exercise PhoneBk class
  15. //--------------------------------------------------------------
  16. #include "EX08062.H"
  17.  
  18. //---------------------------------------------------------------
  19. // member functions of the PhoneNum class
  20. //--------------------------------------------------------------------
  21.  
  22. ostream& PhoneNum::print(ostream& os)
  23. { name.print(os)
  24.      << "\t"
  25.      << tel
  26.      << "\t"
  27.      << endl;
  28.    return os;
  29. }
  30.  
  31. //--------------------------------------------------------------------
  32.