Browse Source

Funktion für zufällige Frage Struktur

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

6
src/timequiz.c

@ -6,6 +6,8 @@
void timequiz(); void timequiz();
int getRandomQuestionIndex(int askedQuestions[], int totalQuestions);
void timequiz() { void timequiz() {
printf("Welcome to our Time Quiz!\n"); printf("Welcome to our Time Quiz!\n");
@ -52,4 +54,8 @@ void timequiz() {
memset(askedQuestions, 0, sizeof(askedQuestions)); memset(askedQuestions, 0, sizeof(askedQuestions));
srand((unsigned int)time(NULL)); srand((unsigned int)time(NULL));
int getRandomQuestionIndex(int askedQuestions[], int totalQuestions) {
}
} }

1
src/timequiz.h

@ -2,5 +2,6 @@
#define TIMEQUIZ_H #define TIMEQUIZ_H
void timequiz(); void timequiz();
int getRandomQuestionIndex(int askedQuestions[], int totalQuestions);
#endif //ende TIMEQUIZ_H #endif //ende TIMEQUIZ_H
Loading…
Cancel
Save