some exercises on c++