C/C++ exercises