Hello Friends my name is Harvinder Singh today I am talking about on how to use gotoxy(); function in code: block do not west time & let's get's start.
Use gotoxy function in Code-block Step by Step
void gotoxy(int x,int y) { COORD c; c.X=x; c.Y=y; SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),c); }
Gotoxy function with Example
Example
#include < windows.h > #include < stdio.h > void gotoxy(int x,int y) { COORD c; c.X=x; c.Y=y; SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),c); } void main() { gotoxy(12,35); printf("Brightgoal"); }
0 Comments