|
|
@ -18,12 +18,13 @@ void casualQuiz() { |
|
|
|
}; |
|
|
|
int easy_richtigeAntworten[] = { 3,4}; // int, um die jeweils richtige antwort zu zeigen |
|
|
|
|
|
|
|
activePlaying(easy_fragen, *easy_antworten, easy_richtigeAntworten); |
|
|
|
int length_frag_array = sizeof(easy_richtigeAntworten)/sizeof(int); |
|
|
|
activePlaying(easy_fragen, *easy_antworten, easy_richtigeAntworten, length_frag_array); |
|
|
|
return; |
|
|
|
} |
|
|
|
void activePlaying(char *fragen[], char *antworten[], int richtige_antwort[]){ |
|
|
|
int length = sizeof(richtige_antwort)/sizeof(int); |
|
|
|
for (int i = 0; i < length; i++){ |
|
|
|
void activePlaying(char *fragen[], char *antworten[], int richtige_antwort[], int size ){ |
|
|
|
|
|
|
|
for (int i = 0; i < size; i++){ |
|
|
|
printf(" %s\n1) %s\n2) %s\n3) %s\n4) %s\n %d\n", fragen[i], antworten[4 * i + 0], antworten[4 * i + 1], antworten[4 * i + 2], antworten[4 * i + 3], richtige_antwort[i]); |
|
|
|
} |
|
|
|
} |
|
|
|