diff --git a/src/timequiz.c b/src/timequiz.c index c5edcd0..b7c29e9 100644 --- a/src/timequiz.c +++ b/src/timequiz.c @@ -12,6 +12,8 @@ void displayQuestion(char* question, char* answers[], int correctIndex); void processUserAnswer(int userAnswer, int correctIndex, int* score, int* totalCorrectAnswers, char* answers[]); +int isValidAnswer(int userAnswer); + void timequiz() { printf("Welcome to our Time Quiz!\n"); @@ -187,3 +189,6 @@ void processUserAnswer(int userAnswer, int correctIndex, int* score, int* totalC printf("Wrong! The correct answer is: %d. %s\n", correctIndex + 1, answers[correctIndex]); } } + +int isValidAnswer(int userAnswer) { +} diff --git a/src/timequiz.h b/src/timequiz.h index 89d7376..9803ee9 100644 --- a/src/timequiz.h +++ b/src/timequiz.h @@ -5,5 +5,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[]); +int isValidAnswer(int userAnswer); #endif //ende TIMEQUIZ_H