That title is probably not as helpful as it should be as I am not entirely sure what the issue is, what's causing it, or how to interpret the errors I'm receiving.
Before I begin asking my question though I would like to note that I am asking a question about a program that I am required to write for my college (Seneca College) but that I do not want someone to solve it for me or give me the answer or something along those lines, just to help point me in the right direction or understand exactly what is going wrong.
I am compiling two files, one of which includes a file (#include "command.h") that contains the class I am accessing. The other file is provided to us and is the main, and the compiler seems to be telling me that that is where the errors are coming from. This is and the nature of the errors are confusing me, as I doubt my teacher provided a main program that didn't work.
Any and all help would be greatly appreciated. I'm entirely unsure as to what is causing the problem, because it keeps telling me it's in his program (a2main.cpp. My code is command.cpp and the class is command.h). If any other information is required, please ask.
This is by far one of the best-asked questions I've seen in a long time. Congratulations.
The first error on the list is easily solved: in your header file, you need a semi-colon after the class declaration (do you see why?). The second one I think just involved some confusion on your compiler's part as to check_init's return type; unless I'm missing something, that semi-colon should fix that too. The same goes for the third error.
Now... what's this about sourceannotations.h? It doesn't seem to be used anywhere and it's a header file, but MSVS seems to dislike some alleged redefinition in it, and we have more what I can only describe as side-by-side-type syntax errors.
I see why I needed that and I just compiled it without any errors after fixing that error. I can't believe I could have missed something so small and that it could have had such a drastic effect.
Though there's probably still some issues I'll have to work out with the program (not error related. The main he provides us essentially checks the code to make sure it's doing everything he's asked of us) it has now compiled and I can actually start working on it.
Thank you Albatross for your time and your assistance. I really appreciate it.
Edit: Actually, though it's compiled, the .exe doesn't seem to want to run. No errors have popped up though. Though that is my neck of the woods, I just thought I'd ask that when using strcpy the first array or string is the one that has dating being copied into it right? And when using a 2D array you can use it like strcpy(modifier[a], mods[a]) which will be the same as copying all of the data from mods[a][all indices] to modifier[a][all indices]?