World Amount Objects - Sry my english is bad :c

World Amount Objects - Sry my english is bad :c

Hello I'm Tobi and how u can see im from Poland ^_^ -> TobiPL ( PL -> Poland :D )

thats why my English is bad ;c... Sorry...

 

i wanna make my Code Better but idk How... Look:

 

<code>

struct WorldObject

{

    int posx,

        posy;

    short type;

};

struct World{WorldObject Object[50];};

World Test[3][3];

</code>

 

How u can see i have Struct named "WorldObject" and Every object have PosX , posY and Type ( ID to Graphics )

and i have another Struct names "World" and inside this Struct i have 50 Objetsc from struct "WorldObject"

 

and now my Problem... how can i set different Amount of "WorldObject" in evey "cell" in "world" 

something like:

World Test[1][1] have 30 World Objects

World Test[1][2] have 100 World Objects

World Test[1][3] have 50 World Objects..

 

i was trying with something like this:

<code>

Struct World

{

int Amount;

WorldObjects[Amount];

}

</code>

 

but i got Error ;/...