Browse Source

refactoring: Neue Array Konstante hinzugefügt

remotes/origin/Pascal
Pascal Schneider 11 months ago
parent
commit
6ec8605260
  1. 4
      src/timequiz.c

4
src/timequiz.c

@ -5,7 +5,7 @@
#include "timequiz.h"
#define NUM_ANSWERS 4
#define ASKED_QUESTIONS 40
void timequiz();
@ -140,7 +140,7 @@ void timequiz() {
time_t currentTime;
int elapsedTime = 0;
int totalQuestions = sizeof(questions) / sizeof(questions[0]);
int askedQuestions[40];
int askedQuestions[ASKED_QUESTIONS];
memset(askedQuestions, 0, sizeof(askedQuestions));
srand((unsigned int)time(NULL));

Loading…
Cancel
Save