coord...

This is a discussion on coord... within the C++ Programming forums, part of the General Programming Boards category; hello, what i want to do is, display some text, in a certain position..? like.. the user types the text ...

  1. #1
    Registered User
    Join Date
    Apr 2004
    Posts
    102

    Question coord...

    hello,
    what i want to do is, display some text, in a certain position..?
    like.. the user types the text at the bottom of the console, and it apears at the top?
    do you understand?
    i just realy dont know how to do it

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >do you understand?
    Yes.

    >i just realy dont know how to do it
    Neither do we. You didn't specify what OS/compiler you're using, so there isn't really much we can do to help.
    My best code is written with the delete key.

  3. #3
    Registered User
    Join Date
    Apr 2004
    Posts
    102
    ms visual studio 6
    windows

  4. #4
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    Code:
    #include <windows.h>
    
    void mygotoxy ( int x, int y )
    {
      COORD dwCursorPosition = { x, y };
      SetConsoleCursorPosition ( GetStdHandle ( STD_OUTPUT_HANDLE ), dwCursorPosition );
    }
    My best code is written with the delete key.

  5. #5
    Registered User
    Join Date
    Apr 2004
    Posts
    102
    Thank you very much

  6. #6
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    AdrianXW's site has a lot of tutorials for manipulating the console, too.
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Question about COORD
    By RealityFusion in forum C++ Programming
    Replies: 1
    Last Post: 09-30-2005, 07:02 PM
  2. Pong is completed!!!
    By Shamino in forum Game Programming
    Replies: 11
    Last Post: 05-26-2005, 11:50 AM
  3. POINT and COORD
    By Extol in forum Windows Programming
    Replies: 0
    Last Post: 04-17-2003, 05:04 PM
  4. Just one Question?
    By Irish-Slasher in forum C++ Programming
    Replies: 6
    Last Post: 02-12-2002, 10:19 AM
  5. erm - coord struct - returning values
    By iain in forum Windows Programming
    Replies: 1
    Last Post: 01-22-2002, 12:18 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21