Browse Source

Fragenerstellen

remotes/origin/Kevin
Kevin Schellberg 11 months ago
parent
commit
3f1e5f0d99
  1. 2
      build/test/results/test_casualQuiz.pass
  2. 2
      build/test/results/test_quizduell.pass
  3. 2
      build/test/results/test_timequiz.pass
  4. 2
      build/test/results/test_wwm.pass
  5. 11
      src/quizduell.c

2
build/test/results/test_casualQuiz.pass

@ -11,4 +11,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.04532009999996944
:time: 0.01628160000001344

2
build/test/results/test_quizduell.pass

@ -11,4 +11,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.032967900000016925
:time: 0.01820100000003322

2
build/test/results/test_timequiz.pass

@ -11,4 +11,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.032357900000022255
:time: 0.015525200000013228

2
build/test/results/test_wwm.pass

@ -11,4 +11,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.0354631000000154
:time: 0.016153500000029908

11
src/quizduell.c

@ -4,6 +4,17 @@
#include <string.h> #include <string.h>
#include <ctype.h> #include <ctype.h>
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() { void quizduell() {
printf("Welcome to the singleplayer quizduell!\n"); printf("Welcome to the singleplayer quizduell!\n");

Loading…
Cancel
Save