I'm trying out my dev environment making sure everything works and my code compiles just fine, and if I run it in QT Creator, I see the output in the command log window, but I don't see any output at the actual command prompt itself. I can redirect the output (see picture) and it will list in a text file, but nothing on the console. I've tried QTextSteam as well as standard cout.
// #include <QTextStream>
#include <iostream>
using namespace std;
int main() {
//QTextStream(stdout) << "Hello, world!" << endl;
cout << "Hello, world!" << endl;
cout << "Hello, world!" << endl;
cout << "Hello, world!" << endl;
//cout.flush();
return 0;
}
output:
C:\Users\user\Documents\dev\hello\release>hello.exe
C:\Users\user\Documents\dev\hello\release>hello > test.txt
C:\Users\user\Documents\dev\hello\release>type test.txt
Hello, world!
Hello, world!
Hello, world!