outtextxy

Overview :

This function is used to print a message at a paricular x,y co-ordinate in the graphics mode.

Syntax :
void outtextxy(int x,int y,"Message");
Description :
The "outtextxy" function accepts 3 parameters
  • x -> The x co-ordinate of the screen where the message has to be displayed

  • y -> The y co-ordinate of the screen where the message has to be displayed

  • Message -> This parameter is used for the message you want to display on screen


"outtextxy" function does not return any value.
Example :
#include <graphics.h>
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>

int main()
{

   int gm,gd=DETECT;


   initgraph(&gd,&gm,"C:\\turboc3\\bgi");
   setcolor(6);

   outtextxy(100,100,"Hello World");

   getch();
   closegraph();
   return 0;
}


Comments

comments powered by Disqus