I realize getch is non-standard but seeing as everyone says there is no way in standard c++ to get the keystroke without the enter button I plan to use it anyway. In this bit of code getch works for everything key but the arrow keys it registers all of them as the ascii character 224. If someone could let me know why, that would be great.
Code:void Player1Move(char array[75][31]){ const int xpos=2; int ypos=15; int input; //up arrow ASCII is 24 and down arrow is 25 input=getch(); cout<<input; }