Hi!
Put the following code into a file, save, compile, run, see what it does.
- #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;
-
}
If it doesn't work, you're probably not using a Windows/DOS machine. In that case, you'll have to implement your own gotoxy function, as was done
here.
Greetings,
Nepomuk