C++ codes and programs