From 545417073efc3579572c6114dd92e2f709bd6eba Mon Sep 17 00:00:00 2001 From: Pascal Schneider Date: Mon, 5 Feb 2024 23:56:11 +0100 Subject: [PATCH] =?UTF-8?q?While-Schleife=20f=C3=BCr=20Spiel=20v4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/timequiz.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/timequiz.c b/src/timequiz.c index 45fa6b5..10a32cd 100644 --- a/src/timequiz.c +++ b/src/timequiz.c @@ -72,6 +72,10 @@ void timequiz() { scanf_s("%d", &userAnswer); processUserAnswer(userAnswer, correctIndex, &score, &totalCorrectAnswers, answers[questionIndex]); + + totalAnsweredQuestions++; + currentTime = time(NULL); + elapsedTime = (int)difftime(currentTime, startTime); } }