you could use gotoxy(x, y) function in C, but only if your compiler supports the #include file <conio.h>
#include <conio.h>
#include <stdio.h>
int main (void)
{
printf("The first line\n\n"
printf("note the cursor position now\n"
printf("Hit any key and THEN first line changes"
getchar();
gotoxy(0, 0);
printf("OVER WRITTEN HERE\n"
printf("note the cursor position now\n"
getchar();
gotoxy(20,10);
printf("OVER HERE ALSO\n"
return 0;
} Hoping to get certified..in C programming.
theres the ncurses package available for most unix/linux distributions and i've seen a port for the cygwin windows based environent might be worth a look but a lot of these are not very portable. "There are no stupid questions, just lots of inquisitive idiots" - anon
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.