C++ learning process