Practice and refresher of C++