Hi!
I've got an assignment to make a word association game.
It should look like this: 5 main items that are the final solutions for 5 games, 4 sub items that describe each of the main items and 3 different associations for each of this 4 sub items.
a) association1 a) association1 a) association1 a) association1
b) association2 b) association2 b) association2 b) association2
c) association3 c) association3 c) association3 c) association3
sub item 1 sub item 2 sub item 3 sub item 4
main item
I was thinking to make a structure items, which would contain an array with the names of sub items and an array with all associations for those items. Like this:
MAX is defined constant
If anybody has an idea that would be more appropriate, please comment. My main problem are the associations, because I have to separate 3 of them for each sub item.Code:struct items { char subitems[4][MAX], item_name[MAX], association[5][MAX]; }; main() { struct items item[5]; }