C++ exercises.