|
|
@ -52,7 +52,11 @@ void timequiz() { |
|
|
|
"Who composed 'The Four Seasons'?", |
|
|
|
"What is the largest mammal in the world?", |
|
|
|
"What is the study of earthquakes called?", |
|
|
|
"Who wrote 'Hamlet'?" |
|
|
|
"Who wrote 'Hamlet'?", |
|
|
|
"What is the smallest prime number?", |
|
|
|
"Who is known as the 'Queen of Pop'?", |
|
|
|
"What is the chemical symbol for oxygen?", |
|
|
|
"What is the capital of Australia?" |
|
|
|
}; |
|
|
|
|
|
|
|
char* answers[][4] = { |
|
|
@ -91,13 +95,17 @@ void timequiz() { |
|
|
|
{"Antonio Vivaldi", "Wolfgang Amadeus Mozart", "Ludwig van Beethoven", "Johann Sebastian Bach"}, |
|
|
|
{"Blue whale", "African elephant", "Giraffe", "Polar bear"}, |
|
|
|
{"Seismology", "Meteorology", "Geology", "Astronomy"}, |
|
|
|
{"William Shakespeare", "Charles Dickens", "Jane Austen", "Mark Twain"} |
|
|
|
{"William Shakespeare", "Charles Dickens", "Jane Austen", "Mark Twain"}, |
|
|
|
{"2", "3", "5", "7"}, |
|
|
|
{"Madonna", "Beyoncé", "Lady Gaga", "Taylor Swift"}, |
|
|
|
{"O", "Co", "O2", "O3"}, |
|
|
|
{"Canberra", "Sydney", "Melbourne", "Perth"} |
|
|
|
}; |
|
|
|
|
|
|
|
int correctAnswers[] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
|
|
|
1, 1, 1, 1, 1, 1 }; |
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1 }; |
|
|
|
|
|
|
|
for (int i = 0; i < sizeof(questions) / sizeof(questions[0]); i++) { |
|
|
|
int j = rand() % 4; |
|
|
|