From b9a11c9c42b892a3b5ff721e9c104962902f4489 Mon Sep 17 00:00:00 2001 From: Pascal Schneider Date: Mon, 5 Feb 2024 23:50:32 +0100 Subject: [PATCH] =?UTF-8?q?Funktion=20f=C3=BCr=20Antwort=20und=20Score?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/timequiz.c | 5 +++++ src/timequiz.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/timequiz.c b/src/timequiz.c index ef48761..9c87e94 100644 --- a/src/timequiz.c +++ b/src/timequiz.c @@ -10,6 +10,8 @@ int getRandomQuestionIndex(int askedQuestions[], int totalQuestions); void displayQuestion(char* question, char* answers[], int correctIndex); +void processUserAnswer(int userAnswer, int correctIndex, int* score, int* totalCorrectAnswers, char* answers[]); + void timequiz() { printf("Welcome to our Time Quiz!\n"); @@ -85,3 +87,6 @@ void displayQuestion(char* question, char* answers[], int correctIndex) { printf("%d. %s\n", i + 1, answers[i]); } } + +void processUserAnswer(int userAnswer, int correctIndex, int* score, int* totalCorrectAnswers, char* answers[]) { +} diff --git a/src/timequiz.h b/src/timequiz.h index ef57d5f..89d7376 100644 --- a/src/timequiz.h +++ b/src/timequiz.h @@ -4,5 +4,6 @@ void timequiz(); int getRandomQuestionIndex(int askedQuestions[], int totalQuestions); void displayQuestion(char* question, char* answers[], int correctIndex); +void processUserAnswer(int userAnswer, int correctIndex, int* score, int* totalCorrectAnswers, char* answers[]); #endif //ende TIMEQUIZ_H