My cpp code snippets