Array of structs

Sep 24, 2011 at 11:19pm
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 Sep 24, 2011 at 11:19pm
Sep 24, 2011 at 11:22pm
it should work...
Sep 24, 2011 at 11:24pm
ok. now should I upload huge chunks of code for the rest or just put up a file for download?
Sep 24, 2011 at 11:28pm
upload the code
Topic archived. No new replies allowed.