C and C++ learning