c++ - Unexpected results in Qt run in Application Output Pane (not in terminal) -


i using qt creator 2.7.0 , compiling 5.0.2 mingw 32bit simple c++ main.cpp:

#include <iostream>  using namespace std;  int main() {     int i;     (i=1; i<52; i++)     {         cout << << endl;     }      return 0; } 

on project configuration can check box "run in terminal", when windows command prompt shows , expected results of 1 through 51 being printed out 1 number per line on each run of program.

however, if uncheck , instead run in "application output" window. results not appear deterministic. on 1 run output number 1, on run stopped @ 48, run stopped @ 38. each time reporting exited code 0. anyways, what's deal here this?

here's .pro file:

template = app config += console config -= app_bundle config -= qt  sources += main.cpp 


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -