Browse Source

AntwortPrüfen

remotes/origin/Kevin
Kevin Schellberg 11 months ago
parent
commit
3e7852c5f7
  1. BIN
      build/test/out/c/quizduell.o
  2. BIN
      build/test/out/test_quizduell.out
  3. 2
      build/test/results/test_casualQuiz.pass
  4. 2
      build/test/results/test_quizduell.pass
  5. 2
      build/test/results/test_timequiz.pass
  6. 2
      build/test/results/test_wwm.pass
  7. 4
      src/quizduell.c

BIN
build/test/out/c/quizduell.o

BIN
build/test/out/test_quizduell.out

2
build/test/results/test_casualQuiz.pass

@ -11,4 +11,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.01702869999996892
:time: 0.01640070000007654

2
build/test/results/test_quizduell.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.031989800000019386
:time: 0.031963899999936984

2
build/test/results/test_timequiz.pass

@ -11,4 +11,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.016469199999960438
:time: 0.015579099999968093

2
build/test/results/test_wwm.pass

@ -11,4 +11,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.016439999999988686
:time: 0.01601919999995971

4
src/quizduell.c

@ -4,6 +4,10 @@
#include <string.h>
#include <ctype.h>
int pruefeAntwort(QuizFrage frage, char antwort) {
return (frage.korrekteAntwort == antwort);
}
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);

Loading…
Cancel
Save