added many snippets for c/c++