getting cjk character using getch not working only in Windows 10+

38 views Asked by At
int a = getch(); int b = getch();
printf("%c%c", a, b);

This code works fine in Windows 7 or earlier, but in Windows 10 I get letters that I didn't input because b always returns 151. Is there a way to fix this? The console code pages are the same;

0

There are 0 answers