Browse Source

refactoring: Refactoring6

remotes/origin/Kevin
Kevin Schellberg 11 months ago
parent
commit
f6e47e5998
  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. 3
      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.022334299981594086
:time: 0.025510799983749166

2
build/test/results/test_quizduell.pass

@ -51,4 +51,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.039953699975740165
:time: 0.045171999983722344

2
build/test/results/test_timequiz.pass

@ -11,4 +11,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.02081809999071993
:time: 0.02026409999234602

2
build/test/results/test_wwm.pass

@ -11,4 +11,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.019612700009020045
:time: 0.020749499992234632

3
src/quizduell.c

@ -169,7 +169,8 @@ void quizduell() {
if (scanf("%s", auswahl) != 1) { if (scanf("%s", auswahl) != 1) {
} }
int auswahlIndex = -1;
typedef int CategoryIndex;
CategoryIndex auswahlIndex = -1;
for (int i = 0; i < MAX_CATEGORIES; i++) { for (int i = 0; i < MAX_CATEGORIES; i++) {
if (kategorien[i].fragen != NULL && strcmp(auswahl, "Mountains") == 0) { if (kategorien[i].fragen != NULL && strcmp(auswahl, "Mountains") == 0) {

Loading…
Cancel
Save