Browse Source

refactoring: Auslagern des exit commands in Funktion für später

remotes/origin/Florian
Florian Baeseler 11 months ago
parent
commit
3dbfb54f0a
  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. 5
      src/casualQuiz.c
  8. 1
      src/casualQuiz.h

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

BIN
build/test/out/test_casualQuiz.out

2
build/test/results/test_casualQuiz.pass

@ -66,4 +66,4 @@
- Wrong Input! - Wrong Input!
- Wrong Input! - Wrong Input!
- It looks like you havent played the program yet, starting it up... - It looks like you havent played the program yet, starting it up...
:time: 0.035827299987431616
:time: 0.03566809999756515

2
build/test/results/test_quizduell.pass

@ -11,4 +11,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.016350399993825704
:time: 0.016603700001724064

2
build/test/results/test_timequiz.pass

@ -11,4 +11,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.01459390000673011
:time: 0.017840899992734194

2
build/test/results/test_wwm.pass

@ -11,4 +11,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.016387699986808002
:time: 0.014955000020563602

5
src/casualQuiz.c

@ -78,7 +78,7 @@ int FEingabeInteger() {
bool FcheckaufRichtigkeit(int eingabe, int richtige_antwort[], int i) { bool FcheckaufRichtigkeit(int eingabe, int richtige_antwort[], int i) {
switch (eingabe) { switch (eingabe) {
case 0:{ case 0:{
exit(7);
Fabbruch();
break; break;
} }
case 1: { case 1: {
@ -159,4 +159,7 @@ bool FtryAgain(bool already_played){
return false; return false;
} }
}
void Fabbruch(){
exit(7);
} }

1
src/casualQuiz.h

@ -9,5 +9,6 @@ int FEingabeInteger();
bool FcheckaufRichtigkeit(int eingabe, int richtige_antwort[], int i); bool FcheckaufRichtigkeit(int eingabe, int richtige_antwort[], int i);
void FzaehlernachAuswahl(bool richtig, int* answeredP, int* correctP); void FzaehlernachAuswahl(bool richtig, int* answeredP, int* correctP);
bool FtryAgain(bool already_played); bool FtryAgain(bool already_played);
void Fabbruch();
#endif // ende CASUALQUIZ_H #endif // ende CASUALQUIZ_H
Loading…
Cancel
Save