update cpp snippets