From 182753b72fc40f84769bbc2e2f6a903d3dee4e60 Mon Sep 17 00:00:00 2001 From: Pascal Schneider Date: Tue, 6 Feb 2024 00:24:01 +0100 Subject: [PATCH] weitere 5 Fragen und Antworten --- src/timequiz.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/timequiz.c b/src/timequiz.c index 2198a38..18c289e 100644 --- a/src/timequiz.c +++ b/src/timequiz.c @@ -48,7 +48,11 @@ void timequiz() { "Who invented the telephone?", "What is the capital of Brazil?", "What is the hardest natural substance on Earth?", - "Who was the first woman to win a Nobel Prize?" + "Who was the first woman to win a Nobel Prize?", + "Who composed 'The Four Seasons'?", + "What is the largest mammal in the world?", + "What is the study of earthquakes called?", + "Who wrote 'Hamlet'?" }; char* answers[][4] = { @@ -82,13 +86,18 @@ void timequiz() { {"Alexander Graham Bell", "Thomas Edison", "Nikola Tesla", "Galileo Galilei"}, {"Brasília", "Rio de Janeiro", "São Paulo", "Buenos Aires"}, {"Diamond", "Quartz", "Graphite", "Topaz"}, - {"Marie Curie", "Rosalind Franklin", "Mother Teresa", "Malala Yousafzai"} + {"Marie Curie", "Rosalind Franklin", "Mother Teresa", "Malala Yousafzai"}, + {"299,792,458 meters per second", "300,000,000 meters per second", "200,000,000 meters per second", "150,000,000 meters per second"}, + {"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"} }; 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 }; for (int i = 0; i < sizeof(questions) / sizeof(questions[0]); i++) { int j = rand() % 4;