Weird problem with cin

Hi,

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.

Thanks.
http://i.gyazo.com/13f8d854cbc456ea23ee0238222f0859.png

1 comment
Comment actions Permalink

Hello,

We have fixed this problem already:
https://youtrack.jetbrains.com/issue/CPP-3394
It should be included in the next CLion update.

0

Please sign in to leave a comment.