The whole this is very complex. Countries spanning Asia and Europe, Italy that contains separate "Countries", The Vatrican and San Marino. Countries that have no concept of divisions, and probably other complications I don't even know about. Then there is the whole discussion of the differences of "Politics" in various countries.
I would define the simple versions of the structs as:
Code:
struct Continent
{
int stuff;
};
struct Country
{
struct Continent info; //Multiples?
int more_stuff;
};
struct State
{
struct Country more_info;
int other_stuff;
};
Or:
Code:
struct Continent
{
int stuff;
};
struct State
{
int other_stuff;
};
struct Country
{
struct Continent info; // Multiples?
struct state[X]; //Array of "States" or "Divisions"
int more_stuff;
};
Good luck!