when i use it to move a @ around the screen just right and down first i have to hold 1 or 2 down before it even moves then it starts to be like if you hit 2 some times it goes over instead of down heres my code:
Code:int main() { char in; int x = 0; int y = 0; gotoxy(0, 0); cout<<"@"<<endl; while(1 == 1) { in = getch(); switch(in) { case '1': clrscr(); gotoxy(x++, y); cout<<"@"<<endl; break; case '2': clrscr(); gotoxy(x, y++); cout<<"@"<<endl; break; } } }