Browse Source

Funktion für Antwort und Score

remotes/origin/Pascal
Pascal Schneider 11 months ago
parent
commit
b9a11c9c42
  1. 5
      src/timequiz.c
  2. 1
      src/timequiz.h

5
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[]) {
}

1
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
Loading…
Cancel
Save