Positions the output cursor on the current screen
#include <nwconio.h>
void gotoxy (
WORD column,
WORD row);
(IN) Specifies the column on which to position the cursor.
(IN) Specifies the row on which to position the cursor.
This function returns no value.
If an error occurs, errno is set to:
The output cursor is positioned on the current screen. If cursor coupling is enabled for the current screen, the input cursor is also positioned.
NOTE:The order of the row and column parameters is different from all the other functions that take row and column arguments.
#include <stdlib.h>
#include <nwconio.h>
main()
{
gotoxy(10,10);
printf("A");
gotoxy(50,10);
printf("B");
getch();
}