coordinates??

This is a discussion on coordinates?? within the C++ Programming forums, part of the General Programming Boards category; hello again : ) I was wondering if there is a way (for console app) to write a display that ...

  1. #1
    adrive
    Guest

    Post coordinates??

    hello again : )

    I was wondering if there is a way (for console app) to write a display that goes like this :

    (1.)some decorations here
    (2.)cin commands here
    (3.)some decorations here

    meaning, the program would display (3) without having to wait for the user to cin anything on (2).

    I saw people doing it in pascal....but i've never learnt that language....so is this possible in c++???

  2. #2
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,138
    This way, no. But you could print the two decos first and wait for cin at the end. Look into the FAQ and search for gotoxy or cursor positioning in a console.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  3. #3
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    One of the items under "Various" in the board FAQ tells you how to move the cursor around the console screen. Move to where you want your decorations and write, move back to where you want to do your I/O and do your I/O.

    http://www.cprogramming.com/boardfaq.html#various
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  4. #4
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    Whoop's same time syndrome strikes again!
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to get relative mouse coordinates when GLUT return absolute
    By joeprogrammer in forum Game Programming
    Replies: 14
    Last Post: 02-10-2009, 05:35 PM
  2. values into array based on coordinates
    By BabyWasabi in forum C++ Programming
    Replies: 1
    Last Post: 12-13-2006, 06:48 PM
  3. Global coordinates in OpenGL?
    By IcyDeath in forum C++ Programming
    Replies: 1
    Last Post: 11-25-2004, 05:29 PM
  4. Converting from Screen to World Coordinates
    By DavidP in forum Game Programming
    Replies: 9
    Last Post: 05-11-2004, 12:51 PM
  5. Size of 1 pixel
    By ooosawaddee3 in forum C++ Programming
    Replies: 4
    Last Post: 07-26-2002, 08:06 PM

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