Results 1 to 3 of 3

Thread: I've Gotza Problem With gotoxy()...

  1. #1
    Join Date
    Jun 2008
    Posts
    589
    Thanks
    13
    Thanked 54 Times in 54 Posts
    Blog Entries
    1

    Default I've Gotza Problem With gotoxy()...

    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

  2. #2
    Join Date
    Jun 2008
    Posts
    589
    Thanks
    13
    Thanked 54 Times in 54 Posts
    Blog Entries
    1

    Default gotoxy() not referenced in conio.h

    gotoxy(x,y) is NOT referenced in conio.h in C.

    HELP!!

    -magicyte

  3. #3
    Join Date
    Jun 2008
    Posts
    589
    Thanks
    13
    Thanked 54 Times in 54 Posts
    Blog Entries
    1

    Default

    Nevermind. I found out how at:

    http://www.gamedev.net/community/for...opic_id=313866

    here is the code for others who need or needed help:

    Code:
    #include "windows.h"
    
    void gotoxy(int x,int y) 
    { 
    COORD coord; 
    coord.X = x; coord.Y = y; 
    SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), coord); 
    }
    -magicyte

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •