home *** CD-ROM | disk | FTP | other *** search
- // Chap08_2.c to build this program properly you must
- // include Student.cpp in your project
- #include "Student.h"
-
- //same as before, but this time using references
- void someFn(Student &refS)
- {
- refS.semesterHours = 10;
- refS.gpa = 3.0;
- refS.addCourse(3, 4.0); //call the member function
- }
-
- Student s;
- int main()
- {
- someFn(s);
- return 0;
- }
-
-