|
|
@ -161,25 +161,27 @@ void wwm(){ |
|
|
|
printf("Congratulations ! You have won 1.000.000 $"); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
// If für Runde 1-5 |
|
|
|
if (r <= 5) { |
|
|
|
printf("__________________________________________________ \n\n"); |
|
|
|
printf("You are at stage %d and have %d $\n", runde, geld); |
|
|
|
crandomNumber(); |
|
|
|
printf("Question %d: %s\n", runde + 1, question_easy[frage]); |
|
|
|
crandomNumber(); //Berechnung welcher Frage |
|
|
|
printf("Question %d: %s\n", runde + 1, question_easy[frage]); //Frage Ausgabe |
|
|
|
|
|
|
|
for (int i = 0; i < 4; i++) { |
|
|
|
printf("%d. %s \n", i + 1, answers_easy[frage][i]); |
|
|
|
} |
|
|
|
} // Antwortenb Ausgabe |
|
|
|
|
|
|
|
ceingabe(); |
|
|
|
|
|
|
|
ceingabe(); // Eingabe Antwort, automatische Eingabeprüfung auf Zahlen 1-4 |
|
|
|
|
|
|
|
// Prüfung auf korrekte Antwort |
|
|
|
// korrekte Antwort |
|
|
|
if (useranswer == correctAnswer_easy[frage]) { |
|
|
|
printf("That is correct!\n"); |
|
|
|
runde++; |
|
|
|
setGeld(runde); |
|
|
|
} |
|
|
|
// falsche Antwort |
|
|
|
else { |
|
|
|
printf("That is a shame! That is wrong!\n You lost %d $", geld); |
|
|
|
return; |
|
|
|