Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

curosor position? 1

Status
Not open for further replies.

pauloscouser

Programmer
Jan 28, 2004
5
GB
does anyone know of any library functions to locate cursor at any co-ordinates on screen to print text?
am only new to c++ so any help would be greatly appreciated
 
#include <windows.h>

void gotoxy(int x,int y)
{
COORD coord={0};
coord.X = x;
coord.Y = y;
SetConsoleCursorPosition(
GetStdHandle(STD_OUTPUT_HANDLE),
coord );
}

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top