|
|
@ -23,7 +23,12 @@ void casualQuiz() { |
|
|
|
"If you're skeptical about something, you should 'take it with a grain of' what?", |
|
|
|
"Something in an obvious location is said to be 'right under your' what?", |
|
|
|
"When a tree is cut down, the part that remains in the ground is called what?", |
|
|
|
"What name is given to the belt machinery in an airport that delivers checked luggage from the plane to baggage reclaim?" |
|
|
|
"What name is given to the belt machinery in an airport that delivers checked luggage from the plane to baggage reclaim?", |
|
|
|
"By definition, a 10-speed bike has 10 what?", |
|
|
|
"A lullaby is a song sung to babies to help them do what?", |
|
|
|
"In history books, leaders named Alexander and Catherine both share what flattering title?", |
|
|
|
"What notable part of the US's topography accounts for roughly 20 percent of the fresh water on Earth?", |
|
|
|
"A person who is preparing to work hard is said to be 'rolling up his' what?" |
|
|
|
}; |
|
|
|
char* antworten[][4] = { //Eingabe der zugehörigen Antworten in ein array |
|
|
|
{"Elsa", "Rapunzel", "Cinderella", "Pocahontas"}, |
|
|
@ -41,10 +46,15 @@ void casualQuiz() { |
|
|
|
{"Mattress", "Nose", "Foot", "Boxer Shorts"}, |
|
|
|
{"Rump", "Leftovers", "Hump", "Stump"}, |
|
|
|
{"Hangar", "Carousel", "Terminal", "Bagroller"}, |
|
|
|
{"Wheels", "Spokes", "Gears", "Lives"}, |
|
|
|
{"Wake up", "Eat", "Fall asleep", "Invest wisely"}, |
|
|
|
{"The Great", "The Unruly", "The Ego-Consious", "The Ferocious"}, |
|
|
|
{"Mark Zuckerbergs hot tub", "The Grand Canyon", "Death Valley", "The Great Lakes"}, |
|
|
|
{"Sleeves", "Curtains", "AC/DC wall poster", "Towels"}, |
|
|
|
|
|
|
|
|
|
|
|
}; |
|
|
|
int richtigeAntworten[] = { 3,4,1,2,1,4,3,2,2,3,4,1,2,4,2 }; // int, um die jeweils richtige antwort zu zeigen |
|
|
|
|
|
|
|
int richtigeAntworten[] = { 3,4,1,2,1,4,3,2,2,3,4,1,2,4,2,3,3,1,4,1}; |
|
|
|
int length_frag_array = sizeof(richtigeAntworten) / sizeof(int); //länge des arrays wird berechnet, damit man die länge vom spiel kennt |
|
|
|
int correct = 0; |
|
|
|
int answered = 0; |
|
|
@ -180,7 +190,7 @@ bool ftryAgain(bool already_played) { |
|
|
|
if (already_played == true) { //wenn man das spiel schon gespielt hat |
|
|
|
int sure; |
|
|
|
printf("Would you like to play again?\n"); |
|
|
|
printf("Input 1 to continue gaming, input 0 to return to the main menu: "); |
|
|
|
printf("Input 1 to continue gaming, input 0 to close the game: "); |
|
|
|
scanf_s("%d", &sure); //eingabe pb man das spiel nochmal spielen möchte |
|
|
|
|
|
|
|
if (sure == 1) { // nochmal spielen |
|
|
|