How to use gotoxy function in code block ?



how to use gotoxy function in code block, code:block, use function in code block, use gotoxy function code block, gotoxy function in code block, error on gotoxy function in code block, code block, code-block, block code

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


1. open code block and firstly include "windows.h" header file

2. and then past this code

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"); }

Enjoy now gotoxy function in Code-Block

0 Comments