Hello Everybody
I would like to display my display at the center of the screen but i dun know which header file to use to make use of the
gotoxy(x,y)
Oh, if you can please give me some example
Thank:)
Printable View
Hello Everybody
I would like to display my display at the center of the screen but i dun know which header file to use to make use of the
gotoxy(x,y)
Oh, if you can please give me some example
Thank:)
well, gotoxy you have in conio.h when we are talking about DOS. Now, if we're talking about Win32 console program, you can create
About linux, ask in Linux programming.Code:#include <windows.h>
void gotoxy(int x, int y)
{
COORD coord;
coord.X = x;
coord.Y = y;
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), coord);
}
Hi
Thank for reply in so soon
I want to try out how the program you post. But the cusor there got the x and y that i enter.
Can you give mi a better example so that i can understand better
And after each new line the cusor will go back to the left again, it will not print from the position i set
Thank a lot:)