Hi guys, what's the way to split class method and declaration in my codes to different file? I know i should include class declaration as
#include<class.h> but how about declaration? and should i include my class header in declaration file?
for starters, you should do #include "class.h" not #include <class.h> . The <> symbols should only be used for headers that are part of an external library, or something that isn't part of your current project (something that exists in another directory).
For things that are part of your own project, you should use the quotes.