static char sccsid
[] = "@(#)dounit.c 4.1 (Berkeley) 2/24/83";
sprintf(tbuff
, "../../%s/L%s", sname
, todo
); /* script = lesson */
scrin
= fopen(tbuff
, "r");
fprintf(stderr
, "No script.\n");
printf("\nSorry, that's %snot right. Do you want to try again? ",
wrong
> 1 ? "still " : "");
printf("Try the problem again.\n");
} else if (strcmp(tbuff
, "bye") == 0) {
} else if (tbuff
[0] == 'n') {
printf("\nOK. Lesson %s (%d)\n", todo
, speed
);
printf("Skipping to next lesson.\n\n");
printf("Please type yes, no or bye: ");
setdid(todo
, sequence
++);