diff --git a/build/test/results/test_casualQuiz.pass b/build/test/results/test_casualQuiz.pass index 2b7d717..13ee44b 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.04532009999996944 +:time: 0.01628160000001344 diff --git a/build/test/results/test_quizduell.pass b/build/test/results/test_quizduell.pass index 7860d99..23f27b6 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.032967900000016925 +:time: 0.01820100000003322 diff --git a/build/test/results/test_timequiz.pass b/build/test/results/test_timequiz.pass index be4fc39..2f5cd39 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.032357900000022255 +:time: 0.015525200000013228 diff --git a/build/test/results/test_wwm.pass b/build/test/results/test_wwm.pass index f4e43ea..cf54e1e 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.0354631000000154 +:time: 0.016153500000029908 diff --git a/src/quizduell.c b/src/quizduell.c index 4cf1fe3..d9a0556 100644 --- a/src/quizduell.c +++ b/src/quizduell.c @@ -4,6 +4,17 @@ #include #include +QuizFrage erstelleFrage(const char* frage, const char* antwortA, const char* antwortB, const char* antwortC, const char* antwortD, char korrekteAntwort) { + QuizFrage neueFrage; + strcpy(neueFrage.frage, frage); + strcpy(neueFrage.antwortA, antwortA); + strcpy(neueFrage.antwortB, antwortB); + strcpy(neueFrage.antwortC, antwortC); + strcpy(neueFrage.antwortD, antwortD); + neueFrage.korrekteAntwort = korrekteAntwort; + return neueFrage; + +} void quizduell() { printf("Welcome to the singleplayer quizduell!\n");