#include <iostream>#include <iomanip>#include <cstring>using namespace std;int main(){ int counter = 0; int i = 1; cout << counter << " " << i << endl ; cin >> counter >> i; cout << counter << " " << i << endl ; return 0;}
SOURCES += \ main.cppTARGET = mainQT -= coreTEMPLATE = appCONFIG += consoleOTHER_FILES += \ ../myProg-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK__Debug/main.exe
C++ (Qt)#include <QtCore/QCoreApplication> int main(int argc, char *argv[]){ QCoreApplication a(argc, argv); return a.exec();}
C++ (Qt)#include <QtCore/QCoreApplication> #include <iostream>#include <iomanip>#include <cstring>using namespace std; int main(int argc, char *argv[]){ QCoreApplication a(argc, argv); int counter = 0; int i = 1; cout << counter << " " << i << endl ; cin >> counter >> i; cout << counter << " " << i << endl ; return 0; //return a.exec();}