What to put in which file?

I have decided to put a big project I was working on..into many files..(don't know, why I didn't at first)...But it keeps generating error messages. have
I have 4 classes... 7 independent functions and the class functions.
If I put the declaration of the class into a .h file..will the corresponding .cpp file be compiled automatically?..also..when writing my own headers , do i have to put in some extra code for activating the use of header guards?
Last edited on
Topic archived. No new replies allowed.