Various c++ programs