snippets and small programs in c++