From f12cee8b56fcaa04c46b69987cb88ff3ef449287 Mon Sep 17 00:00:00 2001 From: Pascal Gutermuth Date: Tue, 31 Jan 2023 18:12:13 +0100 Subject: [PATCH] refactoring: Variable fussball aufgeteilt und leserlicher gestaltet --- src/main.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index ab9c0d2..9fe8a1d 100644 --- a/src/main.c +++ b/src/main.c @@ -167,7 +167,16 @@ int main() 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 - 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, // size = Anzahl Level + .name = "Fussball", + .lvlQuestions = + { + fussLevel1, fussLevel2, fussLevel3, fussLevel4, fussLevel5, + fussLevel6, fussLevel7, fussLevel8, fussLevel9, fussLevel10 + } + }; Category categories[4] = {fussball};