Changed C++ snippets