Browse Source

Variablen für Quiz v3

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

5
src/timequiz.c

@ -47,4 +47,9 @@ void timequiz() {
time_t startTime = time(NULL); time_t startTime = time(NULL);
time_t currentTime; time_t currentTime;
int elapsedTime = 0; int elapsedTime = 0;
int totalQuestions = sizeof(questions) / sizeof(questions[0]);
int askedQuestions[40];
memset(askedQuestions, 0, sizeof(askedQuestions));
srand((unsigned int)time(NULL));
} }
Loading…
Cancel
Save