.hpp?

Jun 6, 2013 at 4:35am
Hello guys. I'm starting with cpp and i have a doubt referred at the .hpp files. I have maked a program with a main file in a .cpp and all the other classes in .hpp files included by this "main.cpp" file. This works fine at this program but i know that this .hpp files are for headers... can anyone explain me why I should not make that on this way? I can have problems makin it on this way? Thanks for the answers and sry for the bad english!
Jun 6, 2013 at 4:37am
Very good explanation of header files and what they are used for here:

http://www.cplusplus.com/forum/articles/10627/
Jun 6, 2013 at 5:01am
Tnx for this really fast answer! I will read it and return later.
Jun 7, 2013 at 12:36am
Really good article! Thanks again, but i still with a doubt... why should i not put the classes in a .hpp file? Will i have real problems with it? (performance or other disadvantages...?)
Topic archived. No new replies allowed.