Small programs in C++