I have been working on a class and it is all big and ugly and would like to split each bit into its own cpp/.h files.
I can not seam to work out how to do this…
Here is my code
http://ideone.com/n2Vjb
I understand that you place the class in the .h and the implementation in the .cpp… but I just can not get it to run, where it runs fine in a single file.
Make sure you don’t forget to put:
in the cpp file, where “HeaderFile.h” is the name of the “.h” file containing the definition of the class you want to use in the cpp file.
If you have a file “MapFrames.h” containing:
then the cpp file “MapFrames.cpp” should contain:
Gerald