#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Posts
    365
    Rep Power
    11

    positioning cout/printf in graphics mode borland turbo c++


    is there anyway to position cout/printf in graphics mode?
    tried using outtext but it doesnt display spaces or numbers correctly
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    May 2004
    Posts
    3,417
    Rep Power
    886
    I seem to recall they used have a goto_xy() that would position the cursor. Not sure if worked with the standard I/O however. I think once your in graphics mode you have to use their graphics functions to write text or wind up with a messy screen. It's been more than a decade since I last used Turbo C++, but try looking through the help section for a TextOut() or WriteTextAt() or just look under graphics functions for a function that writes text. If you can find goto_xy() or GotoXY() or whatever it is, then you should find links to the other relevant functions.
    I no longer wish to be associated with this site.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Posts
    365
    Rep Power
    11
    it is gotoxy(x,y) and also: movetoxy(x,y)
    they are only for outtext() which doesnt display characters properly.
    i posted onto the borland newsgroup and got a reply woo
    so just going to take a look then report back here...
    heres a copy of the message just for interest:
    Build BGIDEMO. It is in the \tc\bgi directory and shows all the fonts
    and the characters they supply. A space is part of each of those
    character sets.

    The only special characters you could show are ones that are supplied
    by whatever font you are using. BGIDEMO shows how to select and use a
    font.

    . Ed

    > Helz wrote in message
    > news:40bb7b55$1@newsgroups.borland.com...
    >
    > Currently doing a project for college, need to use graphics
    > mode, but i'm having trouble when outputting text, whenever
    > there is a space, special character or number a funny
    > symbol is displayed instead. Any ideas on a way to get
    > around this?

IMN logo majestic logo threadwatch logo seochat tools logo