c and c++ snippets, experiments