Browse Source

PrüfeAntwort Richtig/Falsch

remotes/origin/Kevin
Kevin Schellberg 11 months ago
parent
commit
4c230bee53
  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. 8
      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 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.016474300000027142
:time: 0.016160799999852316

2
build/test/results/test_quizduell.pass

@ -15,4 +15,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.030872400000134803
:time: 0.03210450000005949

2
build/test/results/test_timequiz.pass

@ -11,4 +11,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.01619570000002568
:time: 0.015652599999839367

2
build/test/results/test_wwm.pass

@ -11,4 +11,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.016638599999851067
:time: 0.016132599999991726

8
src/quizduell.c

@ -33,6 +33,14 @@ int spieleKategorie(Kategorie* kategorie) {
benutzerAntwort[0] = toupper(benutzerAntwort[0]); benutzerAntwort[0] = toupper(benutzerAntwort[0]);
getchar(); getchar();
if (pruefeAntwort(kategorie->fragen[i], benutzerAntwort[0])) {
printf("Correct!\n");
punktzahl++;
}
else {
printf("Wrong! The correct Answer is %c\n", kategorie->fragen[i].korrekteAntwort);
}
} }
return punktzahl; return punktzahl;
} }

Loading…
Cancel
Save