home *** CD-ROM | disk | FTP | other *** search
/ C++ for Dummies (3rd Edition) / C_FD.iso / CHAP08 / CHAP08_3.CPP < prev    next >
C/C++ Source or Header  |  1996-09-15  |  277b  |  14 lines

  1. // Chap08_3.c  to build this program properly you must
  2. //             include Student.cpp in your project
  3. #include "student.h"
  4.  
  5. Student s;
  6. Student t;
  7. int main()
  8. {
  9.    s.addCourse(3, 4.0);  //hereÆs an A+
  10.    t.addCourse(3, 2.5);  //give this guy a C
  11.    return 0;
  12. }
  13.  
  14.