i need to make a 2D array that will look like this:
array[0] = { 0, 1, 3 }
array[1] = { 2, 4 }
array[2] = {}
array[3] = { 5 }
This array needs to be made dynamical... I load data from a server, every array represents a building and his values represent user-id's (persons) that are present at that building. So I want to make it then when people are arriving or going away, I can change these values... So the questions are:
How can I add for example just 1 number to array[2]?
How can I delete for example the "3" from array[0]?
I'm in really short time to finish this (schoolproject), so any help would be cool!!