Learn c++ practice code