Slightly improved cpp snippets.