Snippets for some C++ programs.