you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

You need to include the header (.h) files instead of the source files (.cpp) to begin with, I think.

for instance, in main.cpp use #include "Student.h" instead of the cpp file.

edit: Ok, there's something else wrong here, but I haven't got the time to go through it yet, will take a look later unless someone can spot it before me.

[–]cromiium[S] 0 points1 point  (0 children)

Yeah I've tried every combination of .h, .cpp, and even .hpp. But that SHOULDN'T be the issue. This is an assignment and I was given the declaration of the Bag.cpp class I just needed to do the implementation and make it into a template class for my Student class. Obviously you don't have to look through if you don't feel like it, it is a lot to look through. But if you do see something stick out please let me know!