Search This Blog

Loading...

outtext Function - Computer Graphics CG Program

outtext in computer graphics, below is the declaration of function.

Declaration : void outtext(char *string);

outtext function does not return any value. it is used to display text at current position.
outtext function is used to print text in Graphics Mode, rather using printf() function. Also outtext does not support the escape sequences.

 
Code:
#include<graphics.h>
#include<conio.h>
 
main()
{
int gd = DETECT, gm;
initgraph(&gd, &gm, "C:\\TC\\BGI"); outtext("To display text at a particular position on the screen use outtextxy"); getch();
closegraph();
return 0;
}

No comments:

Post a Comment