Please have a look at the following code, you can compile it as a single .cpp file but you should imagine base library code in a separate package:
#include &l