|
|
@ -446,11 +446,34 @@ int main() |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
Category categories[4] = {fussball, kunst,}; |
|
|
|
Question rechnenQst1 = {.question = "35 + 47", .answer = "82"}; |
|
|
|
Question rechnenQst2 = {.question = "86 + 59", .answer = "145"}; |
|
|
|
Question rechnenQst3= {.question = "24 + 38", .answer = "62"}; |
|
|
|
|
|
|
|
Level rechnenlevel1 = |
|
|
|
{ |
|
|
|
.questions = |
|
|
|
{ |
|
|
|
rechnenQst1, rechnenQst2, rechnenQst3, |
|
|
|
}, |
|
|
|
.size = 3 |
|
|
|
}; |
|
|
|
|
|
|
|
Category rechnen = |
|
|
|
{ |
|
|
|
.size = 1, // size = Anzahl Level |
|
|
|
.name = "Kopfrechnen", |
|
|
|
.lvlQuestions = |
|
|
|
{ |
|
|
|
rechnenlevel1, |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
Category categories[4] = {fussball, kunst, rechnen}; |
|
|
|
|
|
|
|
printf("Willkommen beim Quiz-Spiel! Beantworten Sie die folgenden Fragen:\n"); |
|
|
|
|
|
|
|
int catCount = 2; // anzahl an kategorien |
|
|
|
int catCount = 3; // anzahl an kategorien |
|
|
|
char input[256]; |
|
|
|
|
|
|
|
startGame(catCount, input, categories); |
|
|
|