代码片段:
char ks;
ks=getch(); // getting the keystroke : if non ascii then 2 bytes returned : 1st 0 then //scancode
if(ks==0) // if there's no ascii then get the scan code
ks=getch();
printf("%d",ks); // would print ascii if ks !=0 else scan code
//end
alt 和 control 键不输出,而 ctrl+e 输出为 5 。没看懂,求解释