home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / w / wgt3_ex.zip / WGT26.C < prev    next >
C/C++ Source or Header  |  1992-09-14  |  499b  |  30 lines

  1. #include <conio.h>
  2. #include <wgt.h>
  3.  
  4. /*   WORDUP Graphics Toolkit   Version 3.0
  5.      Demonstration program 26
  6.  
  7. // Shows wgtprintf
  8.  
  9. */
  10.  
  11. wgtfont medium;
  12. int i;
  13. float f;
  14.  
  15.  
  16. void main(void)
  17. {
  18. vga256();        // initializes system
  19. medium=wloadfont("c:\\tc\\newwgt\\fonts\\medium.wfn");
  20.  
  21. wtextcolor(15);
  22. wtextbackground(0);
  23. for (i=0; i<100; i++)
  24.   {
  25.   f=(float)i/100;
  26.   wgtprintf(5,50,medium,"COUNT %i:   FLOAT  %f ",i,f);
  27. }
  28. getch();
  29. textmode(C80);        // used to return to text mode
  30. }