C++ simple programs