Weird problem with cin


I am running mingw 3.21 and bundled cmake/gdb on win 8.1.

There is a weird problem I am having with cin. When I run a simple code like this:
string(or int or whatever) i;
cin >> i;
cout << i << endl;

When a built-in Run window pops up I can only enter one character, the rest doesnt show no matter how many keys I press. Also the input somehow becomes reversed. For example, if I input 123 the cout result will be 321.
If I run debug, which opens the NOT built in window, all is working like it's supposed to.


1 comment
Comment actions Permalink


We have fixed this problem already:
It should be included in the next CLion update.


Please sign in to leave a comment.