Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

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
#include
 
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;
}


This post first appeared on Ask For Program, please read the originial post: here

Share the post

outtext Function - Computer Graphics CG Program

×

Subscribe to Ask For Program

Get updates delivered right to your inbox!

Thank you for your subscription

×