/*
Write a program to illustrate textheight function.
*/
#include<graphics.h>
#include<conio.h>
main() {
int gd = DETECT, gm, height;
char array[100];
initgraph(&gd, &gm, "C:\\TC\\BGI");
height = textheight("C programming");
sprintf(array,"Textheight = %d",height);
outtext(array);
getch();
closegraph();
return 0;
}
0 Comments