Question #278049

Make a sample program using gotoxy function.


Expert's answer





#include <stdio.h>
#include <windows.h>




int main()
{
	// Input data
	COORD c;
	c.X = 40;
	c.Y = 16;


	SetConsoleCursorPosition(
		GetStdHandle(STD_OUTPUT_HANDLE), c);


	printf("gotoxy() ");
	getch();
}

LATEST TUTORIALS
APPROVED BY CLIENTS