Examples of C++ code