Browse Source

refactoring: Variable fussball aufgeteilt und leserlicher gestaltet

main
Pascal Gutermuth 2 years ago
parent
commit
f12cee8b56
  1. 11
      src/main.c

11
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"}; 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, // size = Anzahl Level
.name = "Fussball",
.lvlQuestions =
{
fussLevel1, fussLevel2, fussLevel3, fussLevel4, fussLevel5,
fussLevel6, fussLevel7, fussLevel8, fussLevel9, fussLevel10
}
};
Category categories[4] = {fussball}; Category categories[4] = {fussball};

Loading…
Cancel
Save