C++ toy programs