Added cpp snippets for .h and .cpp files
Updated function snippets and cpp, c files