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