home *** CD-ROM | disk | FTP | other *** search
/ C++ Games Programming / CPPGAMES.ISO / fgl / fglight / exc.arj / TEMP / 16-01.C < prev    next >
Text File  |  1995-01-20  |  348b  |  23 lines

  1. #include <fastgraf.h>
  2. #include <stdio.h>
  3.  
  4. void main(void);
  5.  
  6. void main()
  7. {
  8.    unsigned int seconds;
  9.    unsigned char key, aux;
  10.  
  11.    seconds = 0;
  12.  
  13.    fg_initpm();
  14.    do
  15.    {
  16.       fg_waitfor(91);
  17.       seconds += 5;
  18.       printf("%u seconds have elapsed.\n",seconds);
  19.       fg_intkey(&key,&aux);
  20.    }
  21.    while (key+aux == 0);
  22. }
  23.