Browse Source

Fragenpool erweitern auf 20 Fragen

remotes/origin/Florian
Florian Baeseler 11 months ago
parent
commit
a6e1919039
  1. BIN
      build/test/out/c/casualQuiz.o
  2. BIN
      build/test/out/test_casualQuiz.out
  3. 2
      build/test/results/test_casualQuiz.pass
  4. 2
      build/test/results/test_quizduell.pass
  5. 2
      build/test/results/test_timequiz.pass
  6. 2
      build/test/results/test_wwm.pass
  7. 18
      src/casualQuiz.c

BIN
build/test/out/c/casualQuiz.o

BIN
build/test/out/test_casualQuiz.out

2
build/test/results/test_casualQuiz.pass

@ -62,4 +62,4 @@
- Wrong Input! Going to the next question...
- Wrong Input! Going to the next question...
- It looks like you havent played the program yet, starting it up...
:time: 0.03372880001552403
:time: 0.035793400020338595

2
build/test/results/test_quizduell.pass

@ -11,4 +11,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.013811899931170046
:time: 0.013709699967876077

2
build/test/results/test_timequiz.pass

@ -11,4 +11,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.014014000073075294
:time: 0.013458200031891465

2
build/test/results/test_wwm.pass

@ -11,4 +11,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.01363929989747703
:time: 0.01383519999217242

18
src/casualQuiz.c

@ -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

Loading…
Cancel
Save