home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C++ for Dummies (3rd Edition)
/
C_FD.iso
/
CHAP08
/
CHAP08_1.CPP
next >
Wrap
C/C++ Source or Header
|
1996-09-15
|
362b
|
19 lines
// 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;
}