User Tools

Site Tools


c:graphics.h:textheight
click
to support this page (eg 0,42 € or so) Thanks.

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 [2015/05/06 23:06] (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+
  
advertising
c/graphics.h/textheight.1365186525.txt · Last modified: 2013/04/05 20:28 by 124.123.122.241

Impressum