First of all, trash these globals at the top of the program!
double quiz1;
double quiz2;
double midtermExam;
double finalExam;
double courseAverage;
That's why you made a struct. So you wouldn't have to use globals. If you need to modify values inside one of your functions, use references or pointers. That's what they're there for.
Also, don't put the function's return type when calling. For example, this is wrong in main():
void inputRecord (StudentRecord.record);
Another thing is that when you're passing
record, it's just that: record. You don't need to prefix it with
StudentRecord. .
And don't forget that you need to pass a reference to inputRecord. Otherwise you'll just lose the values that the user inputted when the function returns.
tuxation.com - Linux articles, tutorials, and discussions