During my exercise:
i found that my ASCII code output is ? or strange chinese word after 130(base of 10).till 255.
Besides,my special key only shows on F1 to F10;shift/alt/ctrl F1to F10.
but my arrow keys,F11,F12,pgDn,etc show as a non-special key(first char is not 0)
how can these 2 problem happen?
i need solution for that,thx.
how are you reading them? as a char?
Try using unsigned int. char only works up to 127, then wraps around to negative numbers and prints out funky characters.