C and C++ code and exercises