hi!
i want to move a character A on the screen by using arrow keys.
i know that there are 25 rows and 80 columns.i take a character input as follows:
char input;
cin>>input;
int put=input;
here, the ascii value of input goes in put.
i am using the ascii codes of arrows from the first table given in the link:
http://www.classicteck.com/maxdev/ascii.html
but when i apply if condition that:
if(put==29)
{
gotorc(i,j+1);
putchar('A');
}
//j+1 means that the character should move one column forward
the character stays still.
it doesn't move a column even
please help me