Home > Back-end >  Void Pos (int x, int y) {
Void Pos (int x, int y) {

Time:10-09

HANDLE hOutput


What's the use of this hOutput, is what meaning,
The use of the HANDLE, what's the use?

CodePudding user response:

Void Pos (int x, int y)//set the cursor position
{
COORD pos.
HANDLE hOutput;
Pos. X=X;
Pos. Y=Y;
HOutput=GetStdHandle (STD_OUTPUT_HANDLE);
SetConsoleCursorPosition (hOutput, pos);
}

CodePudding user response:

Please explain it in detail this paragraph

CodePudding user response:

Windows programming, there must be a handle, the equivalent of OOP object,
In this section, first get the handle, and then set the pos,
Written on the handle. The pos=(x, y) is in a line,
But the rules must be divided into two line,
  • Related