Thread: gotoxy function call

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    2

    Question gotoxy function call

    Hi, sorry if this is such a simple question it seems trivial to you guys but I'm just learning C++ so here goes.

    I know there is a gotoxy function call for setting text output to a specific text slot on the monitor, but I can't find the include library with the function declaration. I'm running Visual C++ 6.0 and so far I've no had much luck compiling

    void main()
    {
    gotoxy(5,5);
    cout << 'a' << endl;
    getch();
    }

    ('gotoxy' : undeclared identifier) <--: error message

    Any help with how to solve this issue would be most appreciated.

    Thanks,
    artalin

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    visual c++ 6 doesnt have a gotoxy() function but it is easy enough to write one. Read the FAQ to see how to do this.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  3. #3
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    Rather than just giving you a fish because you're hungry, I'm going to teach you how to fish

    go to Start->Find->Files or Folders

    click "Browse" and navigate to your compiler's "Include" folder, and click "OK".

    Now type in the box labeled "containing text":

    gotoxy

    Click "Find Now".
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  4. #4
    Registered User
    Join Date
    Oct 2002
    Posts
    2
    Doh, me=stupid noob.

    sorry fellas

    artalin

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. temperature sensors
    By danko in forum C Programming
    Replies: 22
    Last Post: 07-10-2007, 07:26 PM
  2. Including lib in a lib
    By bibiteinfo in forum C++ Programming
    Replies: 0
    Last Post: 02-07-2006, 02:28 PM
  3. Game Pointer Trouble?
    By Drahcir in forum C Programming
    Replies: 8
    Last Post: 02-04-2006, 02:53 AM
  4. Unknown C ESP function call error message
    By wbeasl in forum C Programming
    Replies: 1
    Last Post: 10-08-2003, 01:33 PM
  5. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM