Variety of C++ code snippets