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