how to include class declaration and method as header?

Aug 21, 2010 at 12:01am
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?
Aug 21, 2010 at 12:11am
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.


As for your main question, read this: http://www.cplusplus.com/forum/articles/10627/
Aug 21, 2010 at 5:06am
thank you! that's help a lot!
Topic archived. No new replies allowed.