View Full Version : I've Gotza Problem With gotoxy()...
magicyte
07-18-2008, 02:59 AM
While programming in C, I tried to use the funciton gotoxy() on my C++ compiler (Dev-C++ 5 - Bloodshed), and I even included the conio.h file. For some odd reason, It says implicit declaration of gotoxy() when I try to compile. I looked in the header file, and gotoxy() is declared. I don't know what is wrong... Please help!!
-magicyte
magicyte
07-28-2008, 04:24 PM
gotoxy(x,y) is NOT referenced in conio.h in C.
HELP!!
-magicyte
magicyte
07-28-2008, 07:47 PM
Nevermind. I found out how at:
http://www.gamedev.net/community/forums/topic.asp?topic_id=313866
here is the code for others who need or needed help:
#include "windows.h"
void gotoxy(int x,int y)
{
COORD coord;
coord.X = x; coord.Y = y;
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), coord);
}
-magicyte
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.