When i press an arrow key i get 1 of 4 values (M,H,L,P)Code:while(choice != 'f' && choice != 'm')
{
if(kbhit())
{
choice = getch();
if(choice == 0)
{
choice = getch();
}
}
if(isalpha(choice))
{
choice = tolower(choice);
}
}
How do i avoid this. Trying to block the value of the extended arrowkey causes me to block also the Capital letter. such as
Code:if(c == 0x04b)