Important and useful snippets in C++