In Student::testgrade() you need to read in and return grades[0].

Still the strange constructor. What do you want it to do? Should it be doing nothing at all, which is what the code will currently do, or should it be initialising the Student attributes?