Browse Source

While-Schleife für Spiel v4

remotes/origin/Pascal
Pascal Schneider 11 months ago
parent
commit
545417073e
  1. 4
      src/timequiz.c

4
src/timequiz.c

@ -72,6 +72,10 @@ void timequiz() {
scanf_s("%d", &userAnswer); scanf_s("%d", &userAnswer);
processUserAnswer(userAnswer, correctIndex, &score, &totalCorrectAnswers, answers[questionIndex]); processUserAnswer(userAnswer, correctIndex, &score, &totalCorrectAnswers, answers[questionIndex]);
totalAnsweredQuestions++;
currentTime = time(NULL);
elapsedTime = (int)difftime(currentTime, startTime);
} }
} }

Loading…
Cancel
Save