Thread: x y coordinates?

  1. #1
    Unregistered
    Guest

    Question x y coordinates?

    how would i go about writing a function to enable output

    to the screen at an absolute point

    e.g. along X value, up (or down) Y value

    goto here and cout<"text\n";




    *here




    canitbedone?makeitso!

  2. #2
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,823
    gotoxy is in the FAQ

  3. #3
    Registered User
    Join Date
    Sep 2001
    Posts
    6
    Use the function
    gotoxy(x,y)
    cout << "Text Deplays Here" << endl;

    where x and y are insert values.
    a computer will be much different than a normal graph, because the far left hand corner of your screen represents 0,0 so you will have to play around with the values to get it centered.

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, 06:35 PM
  2. values into array based on coordinates
    By BabyWasabi in forum C++ Programming
    Replies: 1
    Last Post: 12-13-2006, 07:48 PM
  3. Global coordinates in OpenGL?
    By IcyDeath in forum C++ Programming
    Replies: 1
    Last Post: 11-25-2004, 06: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