Instead of doing
#include \"MyClass.cpp\"
I would like to do
#include \"MyClass.h\"
I\'ve read online tha
You should not include a source file (.c or .cpp). Instead you should include the corresponding header file(.h) containing the declarations. The source files needs to be compiled separately and linked together to get the final executable.