Thread: cursor control

  1. #1
    Registered User Draco's Avatar
    Join Date
    Apr 2002
    Posts
    463

    cursor control

    does C++ have anything for cursor control similar to C's gotoxy()?

  2. #2
    Magically delicious LuckY's Avatar
    Join Date
    Oct 2001
    Posts
    856
    There is nothing standard to C++ for such a thing, but depending on your platform there are other ways to do it. (see the faq if you don't believe me).

    Btw, I got a good chuckle out of your avatar.

  3. #3
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    And, BTW - it's not standard in C either! Almost everything that's standard in C is part of C++.

    In standard ISO/ANSI C++ there are no colors, no graphics, and no sound.
    A standard-compliant C++ program will run on a system with only a keyboard, text display, and disk storage.

    All of these "extras" depend on your hardware, operating system, and compiler.

    This is why most commercial programs are available for only one platfform.... They have platform specific code.
    Last edited by DougDbug; 11-13-2003 at 07:48 PM.

  4. #4
    Registered User Draco's Avatar
    Join Date
    Apr 2002
    Posts
    463
    I am familiar with the differences between standard and non-standard....

  5. #5
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >A standard-compliant C++ program will run on a system with only a keyboard, text display, and disk storage
    Bzzzt! The standard doesn't assume that you have a keyboard or a display, and many conforming programs run quite happily on machines without both. Oh yea, the standard doesn't assume disk storage either.
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed