here is the sequence i'm using for my arrow keys
#include<stdio.h>
unsigned char keyin
main()
{
if(square==1)
{//start square
putimage(285,440,ste,COPY_PUT);
while((keyin=getch())!='\r')
{//up arrow key
if(keyin==72)
{//hit up arrow
keyin=getch();
square=2;
}//hit up arrow
}//up arrow key
}//start square
do
{//game from start square on
if(square==2)
{//on square 2
putimage(285,400,ste,COPY_PUT);
}//on square 2
square=17;
if(square==17)
{//on the final square, you win
gamer=1;
win=1;
}//on the final square, you win
}//game from start square on
while(gamer!=1);
cout<<"the while statement has closed.\n"; */
getch();
}
<< moderator edit: added [code][/code] tags >>
the problem i'm having is that if you hit the arrow key, nothing happens.
if you then hit the enter key twice, what i want to happen, will happen.
if you try to just hit the enter key without first hitting the arrow key it will do nothing and just exit from all the if, do, and while statements.
please please help my game is due in like 8 hours!!!