User Tools

Site Tools


c:graphics.h:textheight

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

c:graphics.h:textheight [2013/04/05 20:28]
124.123.122.241 [description of textheight & textwidth]
c:graphics.h:textheight [2024/02/16 01:05] (current)
Line 1: Line 1:
-====== textheight =====+===== textheight =====
-<code c>+
  
-</code> 
  
-==== description of textheight ==== 
-textheight & textwidth are functions declared/ defined in graphics header. 
-this functions returns height and width of the text. 
  
-<code c> + 
-#include<graphics.h> + 
-#include<stdio.h> + 
-#include<conio.h> + 
-  + 
-main() + 
-+ 
-  int gd = DETECT, gm, text_height, text_width; +===== output of textheight example =====  
-  char string[100]; + 
-  +    no output of example at the moment 
-  initgraph(&gd, &gm, "C:\\TC\\BGI"); +    do not hesitate and add it...   
-  + 
-  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; +
-+
-</code> +
-===== output of textheight 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.txt · Last modified: 2024/02/16 01:05 (external edit)

Impressum Datenschutz