[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[no subject]



// gotoxy.cpp : Defines the entry point for the console application. 
// 
#include<windows> 
void gotoxy(int x, int y)  
{  
HANDLE hConsoleOutput;  
COORD dwCursorPosition;  
 
dwCursorPosition.X = x;  
dwCursorPosition.Y = y;  
hConsoleOutput = GetStdHandle(STD_OUTPUT_HANDLE);  
SetConsoleCursorPosition(hConsoleOutput,dwCursorPosition);  
} 
 
void main() 
{ 
gotoxy(5,5); 
cout << "Hello there!"; 
} 
 

_______________________________________
Yo me registré en www.costarricense.cr



Reply to: