Examples for education in C and C++