CPP code snippets.