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;