outtext

Overview :

This function is used to print a message at a current position in the graphics mode.

Syntax :
void outtext("Message");
Description :

The "outtext" function accepts 1 parameters

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

  • This function work in graphics mode only.


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

int main()
{
    
   int gm,gd=DETECT;
   
   initgraph(&gd,&gm,"C:\\turboc3\\bgi");
   setcolor(10);
   
    outtext("This message is printed at 0,0");
	
	moveto(100,100);
	
	outtext("Now the message is printed at 100,100");
   
   getch();
   closegraph();
   return 0;
}


Comments

comments powered by Disqus