|
@ -102,6 +102,10 @@ void wwm(){ |
|
|
{"Au", "Ag", "Su", "Si"} |
|
|
{"Au", "Ag", "Su", "Si"} |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
int correctAnswer2[] = { |
|
|
|
|
|
1, 3, 4, 2, 2 |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (int r = 1; r <= 16; r++){ |
|
|
for (int r = 1; r <= 16; r++){ |
|
|
if (r == 16) { |
|
|
if (r == 16) { |
|
@ -109,27 +113,28 @@ void wwm(){ |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
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[frage]); |
|
|
|
|
|
|
|
|
printf("__________________________________________________ \n\n"); |
|
|
|
|
|
printf("You are at stage %d and have %d $\n", runde, geld); |
|
|
|
|
|
crandomNumber(); |
|
|
|
|
|
printf("Question %d: %s\n", runde + 1, question[frage]); |
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < 4; i++) { |
|
|
|
|
|
printf("%d. %s \n", i + 1, answers[frage][i]); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
for (int i = 0; i < 4; i++) { |
|
|
|
|
|
printf("%d. %s \n", i + 1, answers[frage][i]); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
ceingabe(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (useranswer == correctAnswer[frage]) { |
|
|
|
|
|
printf("That is correct!\n"); |
|
|
|
|
|
runde++; |
|
|
|
|
|
setGeld(runde); |
|
|
|
|
|
} |
|
|
|
|
|
else { |
|
|
|
|
|
printf("That is a shame! That is wrong!\n You lost %d $", geld); |
|
|
|
|
|
return; |
|
|
|
|
|
|
|
|
ceingabe(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (useranswer == correctAnswer[frage]) { |
|
|
|
|
|
printf("That is correct!\n"); |
|
|
|
|
|
runde++; |
|
|
|
|
|
setGeld(runde); |
|
|
|
|
|
} |
|
|
|
|
|
else { |
|
|
|
|
|
printf("That is a shame! That is wrong!\n You lost %d $", geld); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |