From c3fa21474fb8e5d40abfbba94d15a3c987db2bd6 Mon Sep 17 00:00:00 2001 From: Pascal Schneider Date: Mon, 5 Feb 2024 23:30:40 +0100 Subject: [PATCH] =?UTF-8?q?Funktion=20f=C3=BCr=20zuf=C3=A4llige=20Frage=20?= =?UTF-8?q?Struktur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/timequiz.c | 6 ++++++ src/timequiz.h | 1 + 2 files changed, 7 insertions(+) diff --git a/src/timequiz.c b/src/timequiz.c index b22fed7..f3931e9 100644 --- a/src/timequiz.c +++ b/src/timequiz.c @@ -6,6 +6,8 @@ void timequiz(); +int getRandomQuestionIndex(int askedQuestions[], int totalQuestions); + void timequiz() { printf("Welcome to our Time Quiz!\n"); @@ -52,4 +54,8 @@ void timequiz() { memset(askedQuestions, 0, sizeof(askedQuestions)); srand((unsigned int)time(NULL)); + +int getRandomQuestionIndex(int askedQuestions[], int totalQuestions) { +} + } diff --git a/src/timequiz.h b/src/timequiz.h index 271061e..8f8989e 100644 --- a/src/timequiz.h +++ b/src/timequiz.h @@ -2,5 +2,6 @@ #define TIMEQUIZ_H void timequiz(); +int getRandomQuestionIndex(int askedQuestions[], int totalQuestions); #endif //ende TIMEQUIZ_H