|
|
@ -36,20 +36,10 @@ void casualQuiz() { |
|
|
|
already_played = activePlaying(easy_fragen, *easy_antworten, easy_richtigeAntworten, length_frag_array, answeredP, correctP); |
|
|
|
printf("korrekte Antworten: %d\n", correct); |
|
|
|
printf("bei: %d beantworteten Fragen", answered); |
|
|
|
end = FtryAgain(already_played); |
|
|
|
correct = 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; |
|
|
|
} |
|
|
@ -144,6 +134,24 @@ void FzaehlernachAuswahl(bool richtig, int* answeredP, int* correctP) { |
|
|
|
return; |
|
|
|
} |
|
|
|
bool FtryAgain(bool already_played){ |
|
|
|
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..."); |
|
|
|
return false; |
|
|
|
} |
|
|
|
else { |
|
|
|
printf("Input not '1', returning to main menu..."); |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
printf("It looks like you havent played the program yet, starting it up..."); |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|
} |