| Description
This shows how to use
the gotoxy function in C to move the
text cursor to a different location
on the screen
Code
#include <conio.h>
#include <stdio.h>
int main(void)
{
int i;
printf("This is the first line.\n");
gotoxy(10,4);
printf("This is the second line.\n");
gotoxy(20,8);
printf("And this is line 3.\n");
return 0;
}
Information
tested using LCC Win
32 and Windows XP
|