home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Virtual Reality Madness
/
VRMAD96_ONE.ISO
/
virtek
/
libex
/
libex155.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-08-24
|
613b
|
15 lines
// Example: 155 from Library Reference
#include "..\3D-Ware\dddware.h"
#include <stdio.h> // This is required for the printf() function.
short count, num;
short main(void)
{
for (count=0; count<23; count++) // Do a few iterations.
{
num+=10; // Increase the source value.
printf("The truncated integer value of the Square Root of %d is %d\n",num,dddSquareRoot(num));
// Print the value and the square root of the value.
}
return 0; // Bye.
}