howto properly use #include

hi there,

I'm new to C++ and am teaching myself. The book that I'm learning from however does not properly explain how #include works. Initially i had the 3 classes that I'm using in one file as well as all methods etc. I've tried to split them up because the code is becoming a pain every time i want to change something.

So far I've unable to work out where I've been going wrong - I've created 3 separate .c++ files for each class and 3 .h files with the same names. i cannot however figure out where I'm going wrong with the configuration. I've tried several things with no avail, so can someone please explain how to properly use the #include.

cheers, sam sutton
Check out this thread.
http://www.cplusplus.com/forum/general/365/

Hope this helps.
cheers that's helped alot.
Topic archived. No new replies allowed.