Pressing these keys places 2 bytes in the input buffer
UP ARROW,PAGE UP,LEFT ARROW,RIGHT ARROW,END,DOWN ARROW,PAGE DOWN,INSERT,DELETE
getch() when called then twice returns 224 in the first time, and another value key-dependant the 2nd time... Try to guess what 72 is...
And.. ahumm
Code:
c = 256 + getch();
if ( c == (256+72))
How nice!
Code:
//Lets see if this works!
int main(){
int x;//let it have a random number!
if(x+256 == x+256){
std::cout << "Hey! you're right! You could this be??\n";
}else{
std::cout << "Get or buy a new compiler :P\n";
}
}