Browse Source

Fragenpool und dazugehörige antworten verdoppelt(5 weitere Fragen)

remotes/origin/Florian
Florian Baeseler 11 months ago
parent
commit
4c7f649aa1
  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. 22
      src/casualQuiz.c

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

BIN
build/test/out/test_casualQuiz.out

2
build/test/results/test_casualQuiz.pass

@ -66,4 +66,4 @@
- Wrong Input!
- Wrong Input!
- It looks like you havent played the program yet, starting it up...
:time: 0.040768800012301654
:time: 0.03344140003900975

2
build/test/results/test_quizduell.pass

@ -11,4 +11,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.016216500021982938
:time: 0.014825400023255497

2
build/test/results/test_timequiz.pass

@ -11,4 +11,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.015832800010684878
:time: 0.013878899975679815

2
build/test/results/test_wwm.pass

@ -11,4 +11,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.016953399986959994
:time: 0.01389900001231581

22
src/casualQuiz.c

@ -10,11 +10,16 @@ void casualQuiz() {
printf("Print aus der Funktion Casual Quiz");
int index = 0;
char* easy_fragen[] = { //eingabe der Fragen in ein Array
"Which Disney character famously leaves a glass shoe behind at a royal ball?",
"The hammer and sickle are one of the most recognisable symbols of which political ideology?",
"Which two words traditionally appear onscreen at the termination of a feature film?",
"A person with well-developed abdominal muscles is said to have a what?",
"A magnet would most likely attract which of the following?",
"Which Disney character famously leaves a glass shoe behind at a royal ball?",
"The hammer and sickle are one of the most recognisable symbols of which political ideology?",
"Which two words traditionally appear onscreen at the termination of a feature film?",
"A person with well-developed abdominal muscles is said to have a what?",
"A magnet would most likely attract which of the following?",
"In the United States, what is traditionally the proper way to adress a judge?",
"Which of these pairs of apps offers roughly the same type of service?",
"A geologist would likely be LEAST helpful for answering questions about which of the following?",
"When a person is rudely ignored, he is said to be getting a what?",
"A common piece of advice goes, 'Be there or be' what?"
};
char* easy_antworten[][4] = { //Eingabe der zugehörigen Antworten in ein array
{"Elsa", "Rapunzel", "Cinderella", "Pocahontas"},
@ -22,9 +27,14 @@ void casualQuiz() {
{"The End", "The Termination", "Pizza's ready", "Hotdog Time"},
{"12-Pack", "6-Pack", "Family Pack", "One-Pack"},
{"Metal", "Plastic", "Humans", "Water"},
{"Your holiness", "Your eminence", "Father", "Your honor"},
{"Snapchat and Instagram", "Whatsapp and Twitter(now 'X')","Lyft and Uber", "Tiktok and Spotify"},
{"Granite Boulders", "Fruity Pebbles", "Precious Stones", "Igneus Rocks"},
{"Hot knee","Cold shoulder", "Burning hand", "Warm toe"},
{"Bare", "Aware", "Square", "All alone a usual"},
};
int easy_richtigeAntworten[] = { 3,4,1,2,1 }; // int, um die jeweils richtige antwort zu zeigen
int easy_richtigeAntworten[] = { 3,4,1,2,1,4,3,2,2,3 }; // int, um die jeweils richtige antwort zu zeigen
int length_frag_array = sizeof(easy_richtigeAntworten) / sizeof(int); //länge des arrays wird berechnet, damit man die länge vom spiel kennt
int correct = 0;

Loading…
Cancel
Save