Originally Posted by xpi0t0s
>I wanted to know if the constuctor is coded correctly
No, because the assignments to stidnum, grades and totnumgrades will assign values to the arguments passed in, and I think your intent is to initialise the member attributes.
If we rewrite the constructor as:
Student::Student(int quux,double gronk,int snert)
then would you assign to quux, gronk and snert, or still to stidnum, grades and totnumgrades, and if the latter three, why?
> Also, since I need to declare the member functions could someone please give me an example of how to declare the function using the class Student.
What's wrong with the ones you've already got? i.e.:
Thank you xpi0t0s! The problem with the functions is that I do not understand how to use the functions without having to redeclare variables inside of each function. I want to be able to use the class Students globally I think.