My attempts at small interesting beginner C++ exercises as shown in http://www.cplusplus.com/forum/articles/12974/