diff --git a/build/test/out/c/casualQuiz.o b/build/test/out/c/casualQuiz.o index d5ff650..37f5686 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 6530a77..4aa6f6d 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 d1da0ff..69f6df4 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.038000699947588146 +:time: 0.03676419996190816 diff --git a/build/test/results/test_quizduell.pass b/build/test/results/test_quizduell.pass index 159e8e1..f97a5fd 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.015598100028000772 +:time: 0.014482000027783215 diff --git a/build/test/results/test_timequiz.pass b/build/test/results/test_timequiz.pass index c0eb80b..823fed0 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.018923399969935417 +:time: 0.015876200050115585 diff --git a/build/test/results/test_wwm.pass b/build/test/results/test_wwm.pass index dd090bd..cce94d0 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.015401000040583313 +:time: 0.016650600009597838 diff --git a/src/casualQuiz.c b/src/casualQuiz.c index 0cbdf88..573ca20 100644 --- a/src/casualQuiz.c +++ b/src/casualQuiz.c @@ -78,7 +78,13 @@ bool activePlaying(char* fragen[], char* antworten[], int richtige_antwort[], in eingabe = feingabeInteger(); //eingabe Funktion richtig = fcheckaufRichtigkeit(eingabe, richtige_antwort, i); //überprüfung der eingabe anhand des richtige_eingabe arrays und dem index fzaehlernachAuswahl(richtig, answeredP, correctP); // zähler werden hochgezählt je nach eingabe - printf("The right answer was: %d) %s\n", richtige_antwort[i],antworten[4 * i + richtige_antwort[i-1]]); + if (richtig == false){ + printf("Would you like to know the right answer?\nInput 1 if oyu want to see it, 0 if not: "); + scanf_s("%d", &ansehen); + if (ansehen == 1) printf("The right answer was: %d) %s\n", richtige_antwort[i],antworten[4 * i + richtige_antwort[i-1]]); + else printf("Continuing...\n"); + } + } return true; }