C and C++ practice and examples