Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Borland C++ 2.x ( with Turbo C ) - <b>outtext() output a string to screen at current position</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 outtext()               Output a String to Screen at Current Position

 #include   <graphics.h>

 void far   outtext(tstring);
 char far   *tstring;

    outtext() outputs graphics text at the current position (CP).  The
    text is output using the current text font, text direction, character
    size and text justification settings. (See settextstyle() and
    settextjustify() for more information regarding these text
    attributes.)

    Returns:    Nothing.

   -------------------------------- Example ---------------------------------

    The following statements output a string of text after setting the
    text font, direction and character size.

           #include <graphics.h>
           #include <conio.h>

           main()
           {
               int gdriver = DETECT;
               int gmode;

               initgraph(&gdriver,&gmode,"");
               settextstyle(SANS_SERIF_FONT,HORIZ_DIR,2);
               outtext("Enter your name: ");
               getch();
               closegraph();
           }


See Also: gettextsettings() textheight() outtextxy()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson