cocos2d-x: CRUD 2d array from another class


#1

I have 3 class, GamePlay, Util, Panel In GamePlay i have a lot of Panel as a matrix I want to create an array to store type of each panel. type is int (for easy). So i want to store that array in Util then i can update and get value from GamePlay and Panel too.

I tried with static int * array[100]; but it error.

Please help me. or tell me the best way to do it.

Thanks for all your help.