Hi, I am trying to get some practice with creating classes in headers and cpp files, and having some issues. My first issue is setting the private name and id variables to the parameters, I thought since they were in the headers they would be found but they do not seem to be, so i am wondering how that should be done. My other issue is with my methods, I do not understand the issue with theses, the error i am getting is "qualified name is not allowed in member declaration" and when i search this, the only thing I seem to find, is something to do with directx9, so I sm at a loss there, so hoping someone can point out where i have went wrong with them.
Most of what you have is OK. the main problem is lines 43 44 and 68.
I've tidied up your code a little and it runs:
1. Comments that repeat obvious code are not good practice.
2. New types/classes are named with a starting capital letter. i.e. Student not student
3. 'Gratudate' is not what you meant.