Quote:
Originally Posted by 6600gt
So basically you are saying that I should put all my functions in the cpp file. I only need to really do this for the children, right? Currently, my project has everything in the header files. I was trying that but didn't know how to set it for this compiler. Thanks for the sample. This is exactly what I was looking for. When school finally ends tomorrow, I will try it out.
|
The short answer to your question is that function declarations should go into the header files (along with documentation of what the functions do

), and the function definitions should go in the cpp files.
The long answer is best left to some research into good programming practices, you can always start with the ubiquitous Wikipedia (
http://en.wikipedia.org/wiki/Header_file) to get more information.
-Eric