From cf79a99eee2d8d357238c290297eec99516d96f4 Mon Sep 17 00:00:00 2001 From: Kevin Schellberg Date: Sun, 4 Feb 2024 19:20:58 +0100 Subject: [PATCH] BenutzerAntwort --- build/test/out/c/quizduell.o | Bin 10240 -> 10284 bytes build/test/out/test_quizduell.out | Bin 114667 -> 115179 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/quizduell.c | 4 ++++ 7 files changed, 8 insertions(+), 4 deletions(-) diff --git a/build/test/out/c/quizduell.o b/build/test/out/c/quizduell.o index 9f00ee9df6a6992f93ff53d6245f784fd43f4d1f..9fe0e7f1f56844e6be333db2756d041128e535ae 100644 GIT binary patch delta 1786 zcmYL}T}&KR6vxlKGqc}p>4M8_<}rmK4#{vQe6COGz6OlWkBzSXpF2gvBC$ zjHZFKqAAmxst>%h`bg4;iKIzGW0YWwNoh^dG$AGxtBvtNmhBNp{n?kZ>fc0Mtg~T8xbwzbCZlPJqjz zo;A4pG=RGSfELlkcCoA&W(mz72Iv*%(c6PXoZJ1uUwFY-HoN}u_)=Oe}+q*-uVl3#MPs;8M z>_-lze`@k%f1wD6{aeyBuD?~04vh`wr{Q?jK@8rylzjx7Qex&s_Z%@ zE(DW$fgD8@9Wu2pI*&2jC|946-G|(Emj%y>a>ed)B6b+|+s>kApzPdRalVirn<~xZ zCo*HDlP^z{AmW$HaN{`)aDIyfZ-{+$t-ZDQudI4;qJJn4-nfEW%?+0t#~|;cwpFb@ zEUg~f3aRbV8nmsb+9|CW+e+dBXr008xZO){D&mW}Qm_pa*JF+Bac_tBPz?{^t7@S5 z&7+}D8K3nSnIJnXBH^=|`-2 zqN}8>AtfyB7HPLh+a?X)xg1xAWY=pTErXP_s+=P4yzSL-;q!jMTlZVDWZ>&>;_j!yH2!8v_2okZGgX(Oafl4g>2g|z*6k=Si@A=!%*Nh_J_ zQ71nxPZcwO!2u$J=rU3RdcCklbd%@@qTh(pBC+dV>&9jfm7f6)6CZhB|F5i~GAfQV WMcAwuYP!ez#6Wz6^_c7NR{kHiSpI4N delta 1811 zcmYL}e{2**6vyAp-tX(3*Q;LduGa1e*Q*ekRxcF9M5{=actR_QSW|7U+)1xJTWzm} z)Yc`|m^6^UW3OouZjHu>E!? z&og(2vG8O>yshQj$Bg;q4*Qzc#rUKDh)!>xn0Fieom&pJdJJ|;ba?lQ6;Fw6Lwb*& zxPhTTk@a=+KmJC1T72az@vOu?Vd3)DUk+vi2LI){oM2xJoM71Ji*hQGyrq`C4_lLzv{ zWiZ0uqpMjLUad(x#|p)RusgH^r*bRTbfud5uagLH57u;*pf|dM>2ihv0XH76v_3U} z>!qo&(Ml2WLXU0YnUvTayUU|RFq#n~u?@|-+!krCr~%l?Z)B%2}>pP3!hx+2gWTjXxi*jR2Kj51fdSN2JzX-v!hWpGdpO(gX!7a**XzkM5rM$S- zCB1_3bnOx8%_y%8J4bIpE~i)&3#45l z?N`#SlNQD&RP|y=Dt8M~n^R?mqOYl_i3=Y=yw3@rq41|fUl5%qS|jSgEm6z$6AcrM z6HOESPIMc|RLMa+JVjBW1d%{e4Sr18=S1g;)`%_>?Zx9)mG=>i6HS|hb3`|YJf2!| zlqf-@6TOL~8vKm3FNxNOE)!j?lIeoyy|qO~h^C3=h+ZdR_${kv3K1oUbfOH=8KNbm zR_Cx+q-Hv}inzg{Mt`kz3(`hM8zOClv=2yIBrS{o57pK~NNSONq>UnFoO*b}j}$*4 zeD~}~>NnOK#^aI-gN;OUMDHWDU^EDeMDqBRwn}t`C?@u-yWK5+PYiUxmle&%Oa8n6 mSC&zcKVGG@SBeKKav~Zgg2rZrSbvk{#L@I9Gwhq`PW~ShviTeU diff --git a/build/test/out/test_quizduell.out b/build/test/out/test_quizduell.out index 27d65e3559f74db4d33ff3b0202f3f9b0b479643..53ee2633d66a0e4097ed3431aa0f6c4b37621eb5 100755 GIT binary patch delta 8508 zcmc&&d0bRSwyx?$*=YonO=%Sr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ualQuiz.pass index 2163396..05273d4 100644 --- a/build/test/results/test_casualQuiz.pass +++ b/build/test/results/test_casualQuiz.pass @@ -11,4 +11,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.01649479999991854 +:time: 0.016473800000085248 diff --git a/build/test/results/test_quizduell.pass b/build/test/results/test_quizduell.pass index 8ec5e8c..55bf1c7 100644 --- a/build/test/results/test_quizduell.pass +++ b/build/test/results/test_quizduell.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.03187730000013289 +:time: 0.03107559999989462 diff --git a/build/test/results/test_timequiz.pass b/build/test/results/test_timequiz.pass index 00ea7a9..64dff30 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.016490100000055463 +:time: 0.01565959999993538 diff --git a/build/test/results/test_wwm.pass b/build/test/results/test_wwm.pass index e7894db..2a419e0 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.017476199999919118 +:time: 0.017601199999944583 diff --git a/src/quizduell.c b/src/quizduell.c index 39f9d23..b2bd6a9 100644 --- a/src/quizduell.c +++ b/src/quizduell.c @@ -27,6 +27,10 @@ int spieleKategorie(Kategorie* kategorie) { char benutzerAntwort[10]; printf("\nQuestion %d:\n%s", i + 1, kategorie->fragen[i].frage); + + printf("Your answer: "); + scanf("%s", benutzerAntwort); + } return punktzahl; }