#include #include #include void main() { int ch1, ch2; do { ch1=_getche(); ch2=_getche(); cout << "input=" << hex<<(int)(ch1) << " " << hex<<(int)(ch2) << endl; if (ch1==0xe0) { cout << "It's arrow "; if (ch2==0x4b) cout << "left " << endl; else if (ch2==0x4d) cout << "right " << endl; else if (ch2==0x48) cout << "up " << endl; else if (ch2==0x50) cout << "down" << endl; } }while (ch1!='q'); }