Browse Source

Punktzahl

remotes/origin/Kevin
Kevin Schellberg 11 months ago
parent
commit
8dd820a3cd
  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. 2
      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.01581269999996948
:time: 0.01649479999991854

2
build/test/results/test_quizduell.pass

@ -15,4 +15,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.03229369999985465
:time: 0.03187730000013289

2
build/test/results/test_timequiz.pass

@ -11,4 +11,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.016001700000060737
:time: 0.016490100000055463

2
build/test/results/test_wwm.pass

@ -11,4 +11,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.016434800000070027
:time: 0.017476199999919118

2
src/quizduell.c

@ -21,12 +21,14 @@ QuizFrage erstelleFrage(const char* frage, const char* antwortA, const char* ant
} }
int spieleKategorie(Kategorie* kategorie) { int spieleKategorie(Kategorie* kategorie) {
int punktzahl = 0;
for (int i = 0; i < kategorie->anzahlFragen; i++) { for (int i = 0; i < kategorie->anzahlFragen; i++) {
char benutzerAntwort[10]; char benutzerAntwort[10];
printf("\nQuestion %d:\n%s", i + 1, kategorie->fragen[i].frage); printf("\nQuestion %d:\n%s", i + 1, kategorie->fragen[i].frage);
} }
return punktzahl;
} }
void zeigeVerfuegbareKategorien(Kategorie kategorien[]) { void zeigeVerfuegbareKategorien(Kategorie kategorien[]) {

Loading…
Cancel
Save