home *** CD-ROM | disk | FTP | other *** search
- // Chap08_1.c - to build this program properly you must
- // include Student.cpp in your project
- #include "student.h"
-
- // application code
- void someFn(Student *pS)
- {
- pS->semesterHours = 10;
- pS->gpa = 3.0;
- pS->addCourse(3, 4.0); //call the member function
- }
-
- Student s;
- int main()
- {
- someFn(&s);
- return 0;
- }
-