|
@ -23,13 +23,35 @@ void casualQuiz() { |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
void activePlaying(char *fragen[], char *antworten[], int richtige_antwort[], int size ){ |
|
|
void activePlaying(char *fragen[], char *antworten[], int richtige_antwort[], int size ){ |
|
|
int eingabeInt; |
|
|
|
|
|
|
|
|
int eingabe; |
|
|
for (int i = 0; i < size; i++){ |
|
|
for (int i = 0; i < size; i++){ |
|
|
eingabeInt = 5; |
|
|
|
|
|
|
|
|
eingabe = 5; |
|
|
FzeigeFragen(fragen, i); |
|
|
FzeigeFragen(fragen, i); |
|
|
FzeigeAntworten(antworten, i); |
|
|
FzeigeAntworten(antworten, i); |
|
|
printf("Please type in your answer 1,2,3 or 4: "); |
|
|
printf("Please type in your answer 1,2,3 or 4: "); |
|
|
|
|
|
|
|
|
|
|
|
eingabe = FEingabeInteger(); |
|
|
|
|
|
switch(eingabe){ |
|
|
|
|
|
case 1:{ |
|
|
|
|
|
printf("Case 1"); |
|
|
|
|
|
break; |
|
|
|
|
|
} |
|
|
|
|
|
case 2:{ |
|
|
|
|
|
printf("Case 2"); |
|
|
|
|
|
break; |
|
|
|
|
|
} |
|
|
|
|
|
case 3:{ |
|
|
|
|
|
printf("Case 3"); |
|
|
|
|
|
break; |
|
|
|
|
|
} |
|
|
|
|
|
case 4:{ |
|
|
|
|
|
printf("Case 4"); |
|
|
|
|
|
break; |
|
|
|
|
|
} |
|
|
|
|
|
default:{ |
|
|
|
|
|
printf("Default"); |
|
|
|
|
|
break; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
printf(" %d\n", richtige_antwort[i]); |
|
|
printf(" %d\n", richtige_antwort[i]); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|