Hello. I'm trying to create a program to create a forum of sorts. I've created 3 source files (cpp) and 3 headers.
CPPs:
Main_part.cpp
Functions.cpp
Bin_tree.cpp
Headers:
Globals.h
Bin_tree.h
Classes.h
My problem is the following:
If I include the header files to every source file I use a header class, it throws me a "multiple definitions" error.
If I don't, it throws me a "<var> or <class> not declared in this scope" error.
I know the answer is probably quite easy, but for the life of me I can't figure it out (even after reading more than a couple of posts throughout the internet).I'm not giving you any of my code because it's for an assignment and I'm not sure whether they accept this kind of help. At any rate, I'd truly appreciate your help. Thank you in advance.