# include # include # include void gotoxy( short x, short y ) { //for time being... just ignore the details about HANDLE //and all other CAPITAL_LETTER_WORDS and LengthyScaryNames //I'll explain about these things some time later in //Win32 programming HANDLE output_handle = GetStdHandle(STD_OUTPUT_HANDLE) ; COORD position = { x, y } ; SetConsoleCursorPosition( output_handle, position ) ; } void main() { gotoxy(10, 10); printf("Hello There"); _getch(); }