If I change the code slightly, this appears to work. I'm not sure why, but there must be some kind of glitch with flushing cout on std::endl in Qt Application Panel.
Qt Code:
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int i;
  8.  
  9. for (i=1; i<52; i++)
  10. {
  11. cout << i << "\n";
  12. }
  13. cout << endl;
  14. return 0;
  15. }
To copy to clipboard, switch view to plain text mode