User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







c:graphics.h:textheight

This is an old revision of the document!


textheight

 

description of textheight

textheight & textwidth are functions declared/ defined in graphics header. this functions returns height and width of the text.

#include<graphics.h>
#include<stdio.h>
#include<conio.h>
 
main()
{
  int gd = DETECT, gm, text_height, text_width;
  char string[100];
 
  initgraph(&gd, &gm, "C:\\TC\\BGI");
 
  text_height = textheight("Hello programmers");
  text_width = textwidth("Hello programmers");
 
  sprintf(string,"height of text = %d width of text = %d",text_height,text_width);
  outtext(string);
 
  getch();
  closegraph();
  return 0;
}

output of textheight c example

  no example at the moment

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War
c/graphics.h/textheight.1365186525.txt · Last modified: 2024/02/16 01:03 (external edit)

Impressum Datenschutz