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>gotoxy() position the cursor in the text window</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 gotoxy()                Position the Cursor in the Text Window

 #include   <conio.h>

 void       gotoxy(x,y);
 int        x;
 int        y;

    gotoxy() moves the cursor to the specified position ('x','y') within
    the current text window. If the 'x' or 'y' coordinates given are
    outside the current window boundaries, the call to gotoxy() is
    ignored.

       Returns:     Nothing.

   Portability:     IBM PC and compatibles only.

   -------------------------------- Example ---------------------------------
    The following statements move the cursor to a specified position and
    print a line of text there.

           #include <conio.h>

           main()
           {
               gotoxy(30,10);
               cputs("Print text at (30,10).");
           }

See Also: wherex() wherey() window()

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