refine c/c++ snippets structure