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 >
Wrap
C/C++ Source or Header
|
1992-09-14
|
499b
|
30 lines
#include <conio.h>
#include <wgt.h>
/* WORDUP Graphics Toolkit Version 3.0
Demonstration program 26
// Shows wgtprintf
*/
wgtfont medium;
int i;
float f;
void main(void)
{
vga256(); // initializes system
medium=wloadfont("c:\\tc\\newwgt\\fonts\\medium.wfn");
wtextcolor(15);
wtextbackground(0);
for (i=0; i<100; i++)
{
f=(float)i/100;
wgtprintf(5,50,medium,"COUNT %i: FLOAT %f ",i,f);
}
getch();
textmode(C80); // used to return to text mode
}