|
@ -32,23 +32,31 @@ void activePlaying(char *fragen[], char *antworten[], int richtige_antwort[], in |
|
|
eingabe = FEingabeInteger(); |
|
|
eingabe = FEingabeInteger(); |
|
|
switch(eingabe){ |
|
|
switch(eingabe){ |
|
|
case 1:{ |
|
|
case 1:{ |
|
|
printf("Case 1"); |
|
|
|
|
|
|
|
|
printf("Case 1\n"); |
|
|
|
|
|
if (richtige_antwort[i] == 4) printf("Right Answer, well done.\n"); |
|
|
|
|
|
else printf("Wrong answer."); |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
case 2:{ |
|
|
case 2:{ |
|
|
printf("Case 2"); |
|
|
|
|
|
|
|
|
printf("Case 2\n"); |
|
|
|
|
|
if (richtige_antwort[i] == 4) printf("Right Answer, well done.\n"); |
|
|
|
|
|
else printf("Wrong answer."); |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
case 3:{ |
|
|
case 3:{ |
|
|
printf("Case 3"); |
|
|
|
|
|
|
|
|
printf("Case 3\n"); |
|
|
|
|
|
if (richtige_antwort[i] == 4) printf("Right Answer, well done.\n"); |
|
|
|
|
|
else printf("Wrong answer."); |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
case 4:{ |
|
|
case 4:{ |
|
|
printf("Case 4"); |
|
|
|
|
|
|
|
|
printf("Case 4\n"); |
|
|
|
|
|
if (richtige_antwort[i] == 4) printf("Right Answer, well done.\n"); |
|
|
|
|
|
else printf("Wrong answer."); |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
default:{ |
|
|
default:{ |
|
|
printf("Default"); |
|
|
|
|
|
|
|
|
printf("Wrong Input!"); |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|