|
|
@ -33,7 +33,12 @@ void timequiz() { |
|
|
|
"Who is known as the 'Father of Computers'?", |
|
|
|
"What is the capital of Canada?", |
|
|
|
"Who discovered penicillin?", |
|
|
|
"What is the chemical formula for table salt?" |
|
|
|
"What is the chemical formula for table salt?", |
|
|
|
"Which is the largest ocean on Earth?", |
|
|
|
"Who is the author of '1984'?", |
|
|
|
"What is the main ingredient in guacamole?", |
|
|
|
"Who was the Greek god of the sea?", |
|
|
|
"What is the square root of 144?" |
|
|
|
}; |
|
|
|
|
|
|
|
char* answers[][4] = { |
|
|
@ -52,10 +57,15 @@ void timequiz() { |
|
|
|
{"Charles Babbage", "Alan Turing", "Ada Lovelace", "Bill Gates"}, |
|
|
|
{"Ottawa", "Toronto", "Vancouver", "Montreal"}, |
|
|
|
{"Alexander Fleming", "Louis Pasteur", "Marie Curie", "Albert Einstein"}, |
|
|
|
{"NaCl", "H2O", "CO2", "HCl"} |
|
|
|
{"NaCl", "H2O", "CO2", "HCl"}, |
|
|
|
{"Pacific Ocean", "Atlantic Ocean", "Indian Ocean", "Arctic Ocean"}, |
|
|
|
{"George Orwell", "F. Scott Fitzgerald", "Aldous Huxley", "J.D. Salinger"}, |
|
|
|
{"Avocado", "Tomato", "Onion", "Lime"}, |
|
|
|
{"Poseidon", "Zeus", "Hades", "Apollo"}, |
|
|
|
{"12", "10", "16", "14"} |
|
|
|
}; |
|
|
|
|
|
|
|
int correctAnswers[] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 }; |
|
|
|
int correctAnswers[] = { 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; |
|
|
|