Hey,
I am making a simple menu program in the DOS Console. I've got the whole program to work exept for I have to use w and x for up and down. I was wonder what were the characters for the actual up, down, left, and right arrows, and how can I get those characters in my code using DEV-CPP. Here is what I have.
-Thanks
#include <stdio.h>
#include <iostream.h>
int main()
{
while(1){
char a_char;
a_char=getchar();
switch(a_char){
case 'w': //This is where I want the up arrow character
cout<<"This is the up arrow"<<endl;
break;
case 'x': //This is where I want the down arrow character
cout<<"This is the down arrow"<<endl;
break;
}
}
return 0;
}