1: #include "stdio.h"
   2: #include "lrnref"
   3: 
   4: whatnow()
   5: {
   6:     if (todo == 0) {
   7:         more=0;
   8:         return;
   9:     }
  10:     if (didok) {
  11:         strcpy(level,todo);
  12:         if (speed<=9) speed++;
  13:     }
  14:     else {
  15:         speed -= 4;
  16:         /* the 4 above means that 4 right, one wrong leave
  17: 		    you with the same speed. */
  18:         if (speed <0) speed=0;
  19:     }
  20:     if (wrong) {
  21:         speed -= 2;
  22:         if (speed <0 ) speed = 0;
  23:     }
  24:     if (didok && more) {
  25:         printf("\nGood.  Lesson %s (%d)\n\n",level, speed);
  26:         fflush(stdout);
  27:     }
  28: }

Defined functions

whatnow defined in line 4; used 1 times
Last modified: 1981-07-10
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 623
Valid CSS Valid XHTML 1.0 Strict