diff --git a/build/test/out/c/casualQuiz.o b/build/test/out/c/casualQuiz.o index d6d6ab9..c1fdb59 100644 Binary files a/build/test/out/c/casualQuiz.o and b/build/test/out/c/casualQuiz.o differ diff --git a/build/test/out/test_casualQuiz.out b/build/test/out/test_casualQuiz.out index 140b4b5..102e959 100755 Binary files a/build/test/out/test_casualQuiz.out and b/build/test/out/test_casualQuiz.out differ diff --git a/build/test/results/test_casualQuiz.pass b/build/test/results/test_casualQuiz.pass index 9c81eed..9310469 100644 --- a/build/test/results/test_casualQuiz.pass +++ b/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.03260759997647256 +:time: 0.035827299987431616 diff --git a/build/test/results/test_quizduell.pass b/build/test/results/test_quizduell.pass index c299b79..9f30ddf 100644 --- a/build/test/results/test_quizduell.pass +++ b/build/test/results/test_quizduell.pass @@ -11,4 +11,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.013434400025289506 +:time: 0.016350399993825704 diff --git a/build/test/results/test_timequiz.pass b/build/test/results/test_timequiz.pass index dd4a085..6eadb39 100644 --- a/build/test/results/test_timequiz.pass +++ b/build/test/results/test_timequiz.pass @@ -11,4 +11,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.013458699977491051 +:time: 0.01459390000673011 diff --git a/build/test/results/test_wwm.pass b/build/test/results/test_wwm.pass index 84dde7c..17d6934 100644 --- a/build/test/results/test_wwm.pass +++ b/build/test/results/test_wwm.pass @@ -11,4 +11,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.013857100042514503 +:time: 0.016387699986808002 diff --git a/src/casualQuiz.c b/src/casualQuiz.c index 4e80a0f..eb74147 100644 --- a/src/casualQuiz.c +++ b/src/casualQuiz.c @@ -1,6 +1,7 @@ #include #include #include +#include #include "casualQuiz.h" @@ -51,7 +52,7 @@ bool activePlaying(char* fragen[], char* antworten[], int richtige_antwort[], in richtig = false; FzeigeFragen(fragen, i); FzeigeAntworten(antworten, i); - printf("Please type in your answer 1,2,3 or 4: "); + printf("Reminder: Typing 0 lets you stop the game.\nPlease type in your answer 1,2,3 or 4: "); eingabe = FEingabeInteger(); richtig = FcheckaufRichtigkeit(eingabe, richtige_antwort, i); FzaehlernachAuswahl(richtig, answeredP, correctP); @@ -76,6 +77,10 @@ int FEingabeInteger() { } bool FcheckaufRichtigkeit(int eingabe, int richtige_antwort[], int i) { switch (eingabe) { + case 0:{ + exit(7); + break; + } case 1: { printf("Case 1\n"); if (richtige_antwort[i] == 1) {