Search code examples
c++cursor-positionwindows-console

C++ SetConsoleCursorPosition (GetStdHandle(STD_OUTPUT_HANDLE), c) 2 arguments


How to use

SetConsoleCursorPosition (GetStdHandle(STD_OUTPUT_HANDLE), c)

function when I have not 1 "c" arguments but 2 for example 2 3?

Maybe someone know better function than SetConsoleCursorPosition, gotoxy() does not work in Visual Studio :(


Solution

  • As you can see here: http://msdn.microsoft.com/en-us/library/windows/desktop/ms682119%28v=vs.85%29.aspx

    CORD is a struct and contains two values, the x value and the y value.