This sample program illustrates splitting declarations from definitions, especially for classes and named constants.
To build, download makefile and type
makeIt will also build in the old-fashioned way
g++ *.cppbut the nice thing about the makefile is that if you edit one of the sources the minimum number of files are recompiled.