diff --git a/build/test/results/test_casualQuiz.pass b/build/test/results/test_casualQuiz.pass index bc982b5..cfc9e24 100644 --- a/build/test/results/test_casualQuiz.pass +++ b/build/test/results/test_casualQuiz.pass @@ -11,4 +11,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.013279100006911904 +:time: 0.01318790001096204 diff --git a/build/test/results/test_quizduell.pass b/build/test/results/test_quizduell.pass index 94d2b9e..cc67674 100644 --- a/build/test/results/test_quizduell.pass +++ b/build/test/results/test_quizduell.pass @@ -11,4 +11,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.013567399990279227 +:time: 0.012945800001034513 diff --git a/build/test/results/test_timequiz.pass b/build/test/results/test_timequiz.pass index d242d30..e1d82f2 100644 --- a/build/test/results/test_timequiz.pass +++ b/build/test/results/test_timequiz.pass @@ -11,4 +11,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.01407669999753125 +:time: 0.013551599986385554 diff --git a/build/test/results/test_wwm.pass b/build/test/results/test_wwm.pass index 5452494..2149996 100644 --- a/build/test/results/test_wwm.pass +++ b/build/test/results/test_wwm.pass @@ -11,4 +11,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.013050099980318919 +:time: 0.014078999985940754 diff --git a/src/casualQuiz.c b/src/casualQuiz.c index 02112ca..14f573d 100644 --- a/src/casualQuiz.c +++ b/src/casualQuiz.c @@ -25,7 +25,9 @@ void casualQuiz() { 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]); + printf("1) %s\n2) %s\n3) %s\n4) %s\n %d\n", antworten[4 * i + 0], antworten[4 * i + 1], antworten[4 * i + 2], antworten[4 * i + 3], richtige_antwort[i]); } } - +void FzeigeFragen(char *fragen[], int index){ + printf("Question: %s\n", fragen[index]); +} diff --git a/src/casualQuiz.h b/src/casualQuiz.h index 6c4d3ab..bf01fa7 100644 --- a/src/casualQuiz.h +++ b/src/casualQuiz.h @@ -3,6 +3,6 @@ void casualQuiz(); void activePlaying(char *fragen[], char *antworten[], int richtige_antwort[], int size); - +void FzeigeFragen(char *fragen[], int index); #endif // ende CASUALQUIZ_H