Instead of doing
#include \"MyClass.cpp\"
I would like to do
#include \"MyClass.h\"
I\'ve read online tha
Cpp files should be defined in your compiler script to be compiled as object files.
What ide are you using? I am going to assume you are compiling with gcc, so here is the command to compile two .cpp files into one executable
gcc -o myclasses.out myclass.cpp myotherclass.cpp
You should only use #include to include class definitions, not the implentation