Browse Source

Auswahl eingefügt, ob man das programm wiederholen möchte oder nicht

remotes/origin/Florian
Florian Baeseler 11 months ago
parent
commit
b9e58f707a
  1. BIN
      build/test/out/c/casualQuiz.o
  2. BIN
      build/test/out/test_casualQuiz.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. 12
      src/casualQuiz.c

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

BIN
build/test/out/test_casualQuiz.out

2
build/test/results/test_casualQuiz.pass

@ -61,4 +61,4 @@
- Right Answer, well done. - Right Answer, well done.
- Wrong Input! - Wrong Input!
- Wrong Input! - Wrong Input!
:time: 0.0355944000184536
:time: 0.033914499974343926

2
build/test/results/test_quizduell.pass

@ -11,4 +11,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.014935399987734854
:time: 0.01536559994565323

2
build/test/results/test_timequiz.pass

@ -11,4 +11,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.017270599957555532
:time: 0.014166200009640306

2
build/test/results/test_wwm.pass

@ -11,4 +11,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.015941800025757402
:time: 0.015359200013335794

12
src/casualQuiz.c

@ -38,6 +38,18 @@ void casualQuiz() {
printf("bei: %d beantworteten Fragen", answered); printf("bei: %d beantworteten Fragen", answered);
correct = 0; correct = 0;
answered = 0; answered = 0;
if (already_played == true) {
int sure;
printf("Would you like to play again?\n");
printf("Input 1 to continue Gaming, input 0 to return to the main menu: ");
scanf_s("%d", &sure);
if (sure == 1) printf("Starting the program up again...");
else {
printf("Input not '1', returning to main menu...");
end = true;
}
}
} }
return; return;
} }

Loading…
Cancel
Save