From 56c392a31860fc1a5d6920f68894c13ce1674610 Mon Sep 17 00:00:00 2001 From: Florian Baeseler Date: Mon, 5 Feb 2024 19:49:15 +0100 Subject: [PATCH] =?UTF-8?q?Eingabe=20f=C3=BCr=20Antwort=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 | 5 ++++- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/build/test/results/test_casualQuiz.pass b/build/test/results/test_casualQuiz.pass index e9859c9..1fa1ece 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.015043999999761581 +:time: 0.0403814000019338 diff --git a/build/test/results/test_quizduell.pass b/build/test/results/test_quizduell.pass index 150a13f..d07a3de 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.01414919999660924 +:time: 0.03373009999631904 diff --git a/build/test/results/test_timequiz.pass b/build/test/results/test_timequiz.pass index ab8b5a8..ad3304a 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.015228500007651746 +:time: 0.03012859998852946 diff --git a/build/test/results/test_wwm.pass b/build/test/results/test_wwm.pass index 5a2f9fd..3d9fa02 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.014498500007903203 +:time: 0.03110500000184402 diff --git a/src/casualQuiz.c b/src/casualQuiz.c index 96d25df..51b3bc3 100644 --- a/src/casualQuiz.c +++ b/src/casualQuiz.c @@ -23,10 +23,13 @@ void casualQuiz() { return; } void activePlaying(char *fragen[], char *antworten[], int richtige_antwort[], int size ){ - + int eingabeInt; for (int i = 0; i < size; i++){ + eingabeInt = 5; FzeigeFragen(fragen, i); FzeigeAntworten(antworten, i); + printf("Please type in your answer 1,2,3 or 4: "); + scanf_s("%d", &eingabeInt); printf(" %d\n", richtige_antwort[i]); } }