From e67512eafb5ca801b988ba03fe7cd6d246252c49 Mon Sep 17 00:00:00 2001 From: Pascal Schneider Date: Tue, 6 Feb 2024 21:26:56 +0100 Subject: [PATCH] refactoring: Anpassen der Header-Datei --- src/timequiz.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/timequiz.h b/src/timequiz.h index 9803ee9..ca65f16 100644 --- a/src/timequiz.h +++ b/src/timequiz.h @@ -3,8 +3,8 @@ 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[]); +void displayQuestion(const char* question,const char* answers[], int correctIndex); +void processUserAnswer(int userAnswer, int correctIndex, int* score, int* totalCorrectAnswers,const char* answers[]); int isValidAnswer(int userAnswer); #endif //ende TIMEQUIZ_H