Array of structs

lots of code so I'll stick with individual problems for the time being.

first off, the struct

1
2
3
4
5
6
7
8
9
10
11
12
13
14
struct Wizard
{
	string wizName;
	int bDay;
	int bMonth;
	int bYear;
	Hogwarts house;
	Ministry department;
	int determination;
	char gender;
	HWRank rankH;
	MinistryRank rankM;
	DeathEaterRank rankD;
};


and then I try to make an array

Wizard wizData[NUM_ROWS][NUM_COLS];

and I'm not sure if it will work like this or if I've got a lot of work ahead of me to change it to a struct of arrays
Last edited on
it should work...
ok. now should I upload huge chunks of code for the rest or just put up a file for download?
upload the code
Topic archived. No new replies allowed.