|
@ -5,20 +5,20 @@ typedef struct |
|
|
{ |
|
|
{ |
|
|
const char* question; |
|
|
const char* question; |
|
|
char answer[256]; |
|
|
char answer[256]; |
|
|
}Question; |
|
|
|
|
|
|
|
|
} Question; |
|
|
|
|
|
|
|
|
typedef struct |
|
|
typedef struct |
|
|
{ |
|
|
{ |
|
|
int size; |
|
|
int size; |
|
|
Question questions[12]; |
|
|
Question questions[12]; |
|
|
}Level; |
|
|
|
|
|
|
|
|
} Level; |
|
|
|
|
|
|
|
|
typedef struct |
|
|
typedef struct |
|
|
{ |
|
|
{ |
|
|
int size; |
|
|
int size; |
|
|
const char* name; |
|
|
const char* name; |
|
|
Level lvlQuestions[10]; |
|
|
Level lvlQuestions[10]; |
|
|
}Category; |
|
|
|
|
|
|
|
|
} Category; |
|
|
|
|
|
|
|
|
int main() |
|
|
int main() |
|
|
{ |
|
|
{ |
|
@ -166,12 +166,8 @@ int main() |
|
|
Question fussQst118 = {.question = "Welche Fussballmannschaft hat die Champions League Saison 2012/2013 gewonnen?", .answer = "FC Bayern Muenchen"}; |
|
|
Question fussQst118 = {.question = "Welche Fussballmannschaft hat die Champions League Saison 2012/2013 gewonnen?", .answer = "FC Bayern Muenchen"}; |
|
|
Question fussQst119 = {.question = "Welche Fussballmannschaft hat die Champions League Saison 2011/2012 gewonnen?", .answer = "Chelsea FC"}; |
|
|
Question fussQst119 = {.question = "Welche Fussballmannschaft hat die Champions League Saison 2011/2012 gewonnen?", .answer = "Chelsea FC"}; |
|
|
Question fussQst120 = {.question = "Welche Fussballmannschaft hat die Champions League Saison 2010/2011 gewonnen?", .answer = "FC Barcelona"}; |
|
|
Question fussQst120 = {.question = "Welche Fussballmannschaft hat die Champions League Saison 2010/2011 gewonnen?", .answer = "FC Barcelona"}; |
|
|
|
|
|
|
|
|
Level fussLevel10 = {.questions = {fussQst109, fussQst110, fussQst111, fussQst112, fussQst113, fussQst114, fussQst115, fussQst116, fussQst117, fussQst118, fussQst119, fussQst120}, .size = 12}; // size = anzahl an FragenS |
|
|
Level fussLevel10 = {.questions = {fussQst109, fussQst110, fussQst111, fussQst112, fussQst113, fussQst114, fussQst115, fussQst116, fussQst117, fussQst118, fussQst119, fussQst120}, .size = 12}; // size = anzahl an FragenS |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Category fussball = {.size = 10, .name = "Fussball", .lvlQuestions = {fussLevel1, fussLevel2, fussLevel3, fussLevel4, fussLevel5, fussLevel6, fussLevel7, fussLevel8, fussLevel9, fussLevel10}}; // size = anzahl an leveln in Kategorie |
|
|
Category fussball = {.size = 10, .name = "Fussball", .lvlQuestions = {fussLevel1, fussLevel2, fussLevel3, fussLevel4, fussLevel5, fussLevel6, fussLevel7, fussLevel8, fussLevel9, fussLevel10}}; // size = anzahl an leveln in Kategorie |
|
|
|
|
|
|
|
|
Category categories[4] = |
|
|
Category categories[4] = |
|
|