Browse Source

For-Schleife für Fragen Shuffle v2

remotes/origin/Pascal
Pascal Schneider 11 months ago
parent
commit
b37745690a
  1. BIN
      build/test/out/test_quizduell.out
  2. BIN
      build/test/out/test_wwm.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. 13
      src/timequiz.c

BIN
build/test/out/test_quizduell.out

BIN
build/test/out/test_wwm.out

2
build/test/results/test_casualQuiz.pass

@ -11,4 +11,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.03200719999995272
:time: 0.01796970000032161

2
build/test/results/test_quizduell.pass

@ -11,4 +11,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.02661990000001424
:time: 0.014309700000012526

2
build/test/results/test_timequiz.pass

@ -11,4 +11,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.024552200000016455
:time: 0.014682400000310736

2
build/test/results/test_wwm.pass

@ -11,4 +11,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.02601670000001377
:time: 0.014739700000063749

13
src/timequiz.c

@ -26,5 +26,18 @@ void timequiz() {
char* temp = answers[i][0]; char* temp = answers[i][0];
answers[i][0] = answers[i][j]; answers[i][0] = answers[i][j];
answers[i][j] = temp; answers[i][j] = temp;
if (j == 0) {
correctAnswers[i] = 1;
}
else if (j == 1) {
correctAnswers[i] = 2;
}
else if (j == 2) {
correctAnswers[i] = 3;
}
else {
correctAnswers[i] = 4;
}
} }
} }
Loading…
Cancel
Save