Basic exercises in C_plus_plus