PDA

View Full Version : programming classes .h only or .h and .cpp?



ColacX
07-05-2009, 05:04 PM
when programming a class in c++ is it better to make just a .h file containing the class or split it up in a .h and .cpp file?

i would argue that making just a .h file is easier and more java-stylish.

Dark Photon
07-05-2009, 06:14 PM
And this has what to do with OpenGL or even graphics exactly?

Consult the C++ FAQ Lite (http://www.parashift.com/c++-faq-lite/).