Search This Blog


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.

int gd = DETECT, gm;
initgraph(&gd, &gm, "C:\\TC\\BGI"); outtext("To display text at a particular position on the screen use outtextxy"); getch();
return 0;

No comments:

Post a Comment