From 79bd8da8ac0169c30341c0afdd03b01aad2d8960 Mon Sep 17 00:00:00 2001 From: Florian Baeseler Date: Fri, 9 Feb 2024 17:22:07 +0100 Subject: [PATCH] =?UTF-8?q?Dokumntation=20hinzugef=C3=BCgt=20f=C3=BCr=20ca?= =?UTF-8?q?sualQuiz(),=20activePlaying(),=20Ausgabe=20antwort=20unf=20frag?= =?UTF-8?q?e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/test/out/c/casualQuiz.o | Bin 11807 -> 12033 bytes build/test/out/test_casualQuiz.out | Bin 122606 -> 122606 bytes build/test/results/test_casualQuiz.pass | 2 +- build/test/results/test_quizduell.pass | 2 +- build/test/results/test_timequiz.pass | 2 +- build/test/results/test_wwm.pass | 2 +- src/casualQuiz.c | 38 ++++++++++++------------ 7 files changed, 23 insertions(+), 23 deletions(-) diff --git a/build/test/out/c/casualQuiz.o b/build/test/out/c/casualQuiz.o index e5931b0f214dc3a02c45e5423783c98ca4ede948..67fe839cd6cd68a2ff235b6d8c6b795ba14acc13 100644 GIT binary patch delta 1553 zcmYjRTTC2f6h8kyJFv`9SlIgoc6OmafeJLm6eMX;x>+=-;=P82?6Si$cG+#0-Eav= zwPD?94^=!fvzhd~%y+)?oy&jb zpSd*p>X?vxqXsnVY%dDFI-3<>hyp~zItj62?+Nm3@k%RyM*#S<_+3ztcz{t6;9zTU zyHPlg;zb+4WGibVjlxCDch~_QZDSGASkZ^k5B%(9(o(V20C0I9dj~}cWc`f*AMRsc zkT6}6*sr98-jbL=TgbNBLw~A#qC2|Ee`&!%&ffe(8zs7W^nUd0SICZV277#GclWKM z_s{H*g79%AN_5>?^vu`Yv0G~o7_$qnkf+(Y@EYZ;s!P0Wd1)vs&1VZzPL8M3^U`cQ zlb7;YX(FASk)`~UES=0{Q@Qx`VPQCPvXGa0w5U9%|PeTcZ!AM1Mw zaWm1e*yb5mvWdbZSox6fI4;dQ{!}_XAx~w~NjV36lc)SRes*%IT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i%jR;QA>g0H@eIAx3`Nn=q zAEP*PMgf_k%PduFJ);1D0lISkCzY|$Sm6>i z4@|achFT97c&O zF1ZXh;Y~q$AEA-KIWC4JFl5UqM<_O=!)4^%Fti5Bx+7TW8kfZiispG;JVI4!mr+iB zm2yVsyJRsq20!z#$n z0uOvYT-`$NV!@MI@rKc6lnYw%es@6Dw`#@tsud;c3X}t1r^Wp&_}%gD9{wo~KjOM1 zPa@sMJs7baQ!&kFXmyi?tW1WKJ YZTJP7ot6b<^HBzD#N&hBpmY8I3!AmwWB>pF diff --git a/build/test/results/test_casualQuiz.pass b/build/test/results/test_casualQuiz.pass index 0f9e6ee..a27aba9 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.03566809999756515 +:time: 0.039886799990199506 diff --git a/build/test/results/test_quizduell.pass b/build/test/results/test_quizduell.pass index 6e8d7f7..80c665d 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.016603700001724064 +:time: 0.01698799995938316 diff --git a/build/test/results/test_timequiz.pass b/build/test/results/test_timequiz.pass index 4d6e6ec..ca93b49 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.017840899992734194 +:time: 0.016645299969241023 diff --git a/build/test/results/test_wwm.pass b/build/test/results/test_wwm.pass index 2e093bc..747478a 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.014955000020563602 +:time: 0.015882299980148673 diff --git a/src/casualQuiz.c b/src/casualQuiz.c index 8e5ed89..5ea5d22 100644 --- a/src/casualQuiz.c +++ b/src/casualQuiz.c @@ -3,7 +3,7 @@ #include #include -#include "casualQuiz.h" +#include "casualQuiz.h" //header datei void casualQuiz() { @@ -26,19 +26,19 @@ void casualQuiz() { }; int easy_richtigeAntworten[] = { 3,4,1,2,1 }; // int, um die jeweils richtige antwort zu zeigen - int length_frag_array = sizeof(easy_richtigeAntworten) / sizeof(int); + 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; int answered = 0; - int* correctP = &correct; - int* answeredP = &answered; - bool already_played = false; + int* correctP = &correct; // pointer auf die zählervariable for richtige Antworten + int* answeredP = &answered; // pointer auf die zählervariable for beantwortete fragen + bool already_played = false; // initialisieren einer Bool variable zum abchecken ob man schon gespielt hat bool end = false; - while (end == false) { + while (end == false) { //schleife, in der das Programm läuft already_played = activePlaying(easy_fragen, *easy_antworten, easy_richtigeAntworten, length_frag_array, answeredP, correctP); printf("korrekte Antworten: %d\n", correct); printf("bei: %d beantworteten Fragen", answered); - end = FtryAgain(already_played); - correct = 0; + end = FtryAgain(already_played); //man wird gefragt ob man nochmal spielen möchte + correct = 0;//zurücksetzen der beiden zählervariablen answered = 0; } @@ -50,25 +50,25 @@ bool activePlaying(char* fragen[], char* antworten[], int richtige_antwort[], in for (int i = 0; i < size; i++) { eingabe = 5; richtig = false; - FzeigeFragen(fragen, i); - FzeigeAntworten(antworten, i); + FzeigeFragen(fragen, i); //frage wird nach gegebenem index ausgegeben + FzeigeAntworten(antworten, i); //Antworten zum gleichen index wie die fragen ausgeben 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); + 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("Bool richtig / falsch: %d\n", richtig); printf(" %d\n", richtige_antwort[i]); } return true; } void FzeigeFragen(char* fragen[], int index) { - printf("Question: %s\n", fragen[index]); + printf("Question: %s\n", fragen[index]); //ausgabe Frage bei gegebenem index } -void FzeigeAntworten(char* antworten[], int index) { - printf("1) %s\n", antworten[4 * index + 0]); - printf("2) %s\n", antworten[4 * index + 1]); - printf("3) %s\n", antworten[4 * index + 2]); - printf("4) %s\n", antworten[4 * index + 3]); +void FzeigeAntworten(char* antworten[], int index) { //folgende ausgaben bei gegebenem index + printf("1) %s\n", antworten[4 * index + 0]); //ausgabe antwort 1 + printf("2) %s\n", antworten[4 * index + 1]); //ausgabe antwort 2 + printf("3) %s\n", antworten[4 * index + 2]); //ausgabe antwort 3 + printf("4) %s\n", antworten[4 * index + 3]); //ausgabe antwort 4 } int FEingabeInteger() { int eingabeInt;