Some small C++ programs