nice C++ code snippets