I am working on a project for my class. Sadly, I have to take this programming class online and it has not been even close to easy. This is what I have and I cannot figure out why I keep getting the errors I am getting.
I am not asking anyone to debug my file...I am just asking to explain to me why this is happening. It seems so basic, maybe I am just missing something.
The lines where the errors are occurring have been made bold. And yes, that one line with the bracket is holding three errors.
} // end class Account should be }; // end class Account
On line 72 you have an endif, but endif makes sense in this particular case only if you have an #ifndef before. You have one at the beginning of the file, but you end it right before the Banking system class. #ifndef end #endif should come in pairs
Are these one or two separate files? If they are just one, the endif issue is because you already did endif once, after account. Also, when defining a class, you must place a ; at the end of the closing brace. In the end, it is exactly what the errors said- you did forget a semicolon, and the #endif is unexpected because you already used one.
This is just one file. I fix the errors and I thank you both for your help. But, I am running into this problem regardless of what I do. On line 7, I get an error that states "See
Account Declaration"
\bankingsystem.h(7) : see declaration of 'Account'