From e072c4c51e540f3a6e6d6791cc2272a2f2c1e5bb Mon Sep 17 00:00:00 2001 From: Florian Baeseler Date: Tue, 6 Feb 2024 18:20:24 +0100 Subject: [PATCH] =?UTF-8?q?Z=C3=A4hlervariablen=20werden=20mitgez=C3=A4hlt?= =?UTF-8?q?=20je=20nach=20richtig=20oder=20falsch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/test/out/c/casualQuiz.o | Bin 8925 -> 9169 bytes build/test/out/test_casualQuiz.out | Bin 116411 -> 116411 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 | 29 ++++++++++++++++-------- 7 files changed, 23 insertions(+), 14 deletions(-) diff --git a/build/test/out/c/casualQuiz.o b/build/test/out/c/casualQuiz.o index 9c6495e21670996714f88002191825369ba6af72..6db6dfd5fd4c5e8071089c3ef3ba7ebfe6d884f5 100644 GIT binary patch delta 2775 zcmZ{m4Qx}#9l-C-zL$re6Fc!oY$vf_LX!p>92%96K*ADQCnhXNYZr-%cHks0jvHzw z#}*$VxNTTfH;WW=8utOkxyzkzU5D;s zWC=EjE<_d~*j)%V(d(SM24te|Zge8z<149I9)6PUS+>gD1(@U_OB20d)~8QImO68P z0o#8AekHQ_!q_58H$i~46KMP#&PC=;xoLpj`t#q zkdtMSzQSI#Hq^bjEQ9gLT?{F2jx;)cUU~1{y{W0_`1ua@S8EubWlPph{2tpxoADpm zbI@O4C!oK~{ze~K!Bgbh>Sl{{7yd89B`ZsC#t$33$;K3)_s+6KZaMg5l9mwmj?&nC zbD8P`kkPFx(1HFtJ|75H#(nCVEg3Hl{h;UVu?O64#{qbRkM(;o~JZdJlojN4o`~wIK8H2K?GU<|DPjRzT+COkqrI#*dBc zOQnpFw4rw<)BE?O(nfNVUO#9<{YHWddcP4XDnO-orDAa-$=+RYh|~|VRkoe%sO>BX zV)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m{@#Y$}s~vB8G^3QDk8xF6QP68>kn6fFQYCePgqKsSlRu~V zEzTCguDIXMNU)mxT+$;eNK;j*MlgOZYAhyLt6+J-z7XtB!Tu3!GCXT7#|)6P@ftOj zfyC4M?hgDIGggHB{!=M`td!LrGm5Z#r(U$O7bsQMbn=E diff --git a/build/test/out/test_casualQuiz.out b/build/test/out/test_casualQuiz.out index e27a6960cfca22c317198992bde7fd785e69f3b4..b7235eaf70f2dd12ebcb4e8c89f56be216f8ef50 100755 GIT binary patch delta 11627 zcmc(EdsJ1|wf9;ZHXdGbl!v@IfG9peqX@o06gVI%J_E)Fh^QzcB19!oFlYin6kOJ2 z5))~fwB|7qlr+AY+@mqk#?+wJB#nvEFKK(c*pxO}tuf*L=HB}pp!bgZ&o{>RoiR4^ zH-B@kwdR`Zxi_a9`<-s=*Hov3uWf#Iw$eVo`OC+-P0Z!V{0q^{=kV6HKk~iYBRrci z*2)>1Evj6?6RJF*GKDcOi0=sZ{8AW8jT=8+C;TAH@FV%4?UKuKC4a+{j5V-bwhFJ4 zFfjXuJjOabPNHsRF9f!Kmdlv6!GGvB_zkQ#+uzmodsL3}pQe&sl}}JTwfA|Y540e7 zTkFr*M`Vdcw?K10D$MHD&HthKo)Euwi|5D1pWUMPe&OD4G%pf~{WkMiqP1T_^$=%G zUMC|cjP8X9DH*kTX_j5K%2+7fRg9fy6epCiuvqKQ0tIU5jD5?a)Q|J3{XOPz`W;H> zAr67#O=xfego`xdmsrpN;X39qGwuh`T9L}|($`n@p>#gL#tjJa<$Y1K}v=i`T zr^x>#q3(A3jdXHUjf#O9=5X++e4y5rVr^6df9&q26kS+^E}ljb8&r41YHjp)gMeWZ z`esj>tktxRni2u-)8{<__XhRMZy3g`Qnf!sZW`3rp;~Ltl`Z{Xp|$=`*4o<^v^flA zoCzA)TZ!wfoE2}lf6o_*!yZY>jD_M$kD>f~p?D_q(<0S#o?@EUcEIx}x4v3Ifh-KP z*5{Z|`2k(EK&7^x(bSY!Yhw&qS!t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`Si$+T1htFacnB|RU={>c#P@Z^BzX$)@b6`ivd(Tmk+EFMApU3p#lKMQY ziSNcYg8N%xUmQL*xwLx-Ouig<5MwKJ8kTRWUR6`h*(iqr%{CuIR;%O%Xz|@HW1Btn z!OdlCB)lfdkQY#+LzcdP`ss4#3+TNf&#-n>ehCo}?QCsBO*KBhA;m>9=tYX1l<2Z{ z+T(E(bNV9n%Bx`d><>_59xkwtT=yadVRgx!HjGF25)9ZRAH0Y)VU}@+unqeP<)T9r W>)+)Z%<}4Tj2MGCx%Uu_8UCL=(3(R4 diff --git a/build/test/results/test_casualQuiz.pass b/build/test/results/test_casualQuiz.pass index 6607d70..0f88edb 100644 --- a/build/test/results/test_casualQuiz.pass +++ b/build/test/results/test_casualQuiz.pass @@ -45,4 +45,4 @@ - Right Answer, well done. - Wrong Input! - Wrong Input! -:time: 0.03493439999874681 +:time: 0.034674599999561906 diff --git a/build/test/results/test_quizduell.pass b/build/test/results/test_quizduell.pass index 64b243b..ff4134e 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.014303199975984171 +:time: 0.013722000003326684 diff --git a/build/test/results/test_timequiz.pass b/build/test/results/test_timequiz.pass index 2bee253..7957b2c 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.014138700003968552 +:time: 0.013790600001811981 diff --git a/build/test/results/test_wwm.pass b/build/test/results/test_wwm.pass index e449187..037c63a 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.01387090000207536 +:time: 0.014121699990937486 diff --git a/src/casualQuiz.c b/src/casualQuiz.c index 199e3c1..42a4ab1 100644 --- a/src/casualQuiz.c +++ b/src/casualQuiz.c @@ -18,20 +18,19 @@ void casualQuiz() { }; int easy_richtigeAntworten[] = { 3,4}; // int, um die jeweils richtige antwort zu zeigen - int length_frag_array = sizeof(easy_richtigeAntworten)/sizeof(int); - int correct = 0; - int answered = 0; - int *correctP = &correct; - int *answeredP = &answered; + int length_frag_array = sizeof(easy_richtigeAntworten)/sizeof(int); + int correct = 0; + int answered = 0; + int *correctP = &correct; + int *answeredP = &answered; - activePlaying(easy_fragen, *easy_antworten, easy_richtigeAntworten, length_frag_array, answeredP, correctP); - printf("%d", answered); - return; + activePlaying(easy_fragen, *easy_antworten, easy_richtigeAntworten, length_frag_array, answeredP, correctP); + printf("korrekte Antworten: %d\n", correct); + printf("bei: %d beantworteten Fragen", answered); + return; } void activePlaying(char* fragen[], char* antworten[], int richtige_antwort[], int size, int* answeredP, int* correctP) { int eingabe; - int plus = *answeredP + 1; - *answeredP = plus; bool richtig; for (int i = 0; i < size; i++) { eingabe = 5; @@ -41,6 +40,16 @@ void activePlaying(char* fragen[], char* antworten[], int richtige_antwort[], in printf("Please type in your answer 1,2,3 or 4: "); eingabe = FEingabeInteger(); richtig = FcheckaufRichtigkeit(eingabe, richtige_antwort, i); + if (richtig == true){ + int plus = *answeredP + 1; + *answeredP = plus; + int add = *correctP + 1; + *correctP = add; + } + else{ + int plus = *answeredP + 1; + *answeredP = plus; + } printf("Bool richtig / falsch: %d\n", richtig); printf(" %d\n", richtige_antwort[i]); }