I want to make cin>> work in QT, so it's needed to use the external terminal, not the application output.
I followed all the instructions given in the previous answers about cin>> not working, but I can't make it work on QT creator 15:
- I set: "run in terminal"
- I de-select "show in application output when running"
- I added the cmd.exe path in edit->preferences->environment->patch command
The terminal opens, but the only thing that is output is: Press to close this window...
My simple code:
#include <iostream> using namespace std; int main() { string a; cout <<"enter any string" << endl; cin >> a; cout << endl; cout << "I understood: " << a << endl; return 0; } 
