home *** CD-ROM | disk | FTP | other *** search
/ Virtual Reality Madness / VRMAD96_ONE.ISO / virtek / libex / libex155.c < prev    next >
C/C++ Source or Header  |  1995-08-24  |  613b  |  15 lines

  1.                                     // Example: 155 from Library Reference
  2. #include "..\3D-Ware\dddware.h"
  3. #include  <stdio.h>                 // This is required for the printf() function.
  4. short    count, num;
  5. short  main(void)
  6. {
  7.   for  (count=0; count<23; count++) // Do a few iterations.
  8.   {
  9.     num+=10;                        // Increase the source value.
  10.     printf("The truncated integer value of the Square Root of %d is %d\n",num,dddSquareRoot(num));
  11.                                     // Print the value and the square root of the value.
  12.   }
  13.   return 0;                         // Bye.
  14. }
  15.