Hi,
this is equivalent to the gotoxy() funtion.Its easy to understand.Have fun!
#include <windows.h>
#include <iostream.h>
void gotoxy(int,int);
int main()
{
gotoxy (5,10);
cout << "This text is at x5, y10" << endl;
return 0;
}
void gotoxy(int X, int Y)
{
COORD coord;
coord.X = X;
coord.Y = Y;
HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleCursorPosition(hConsole, coord);
}