So i'm writing a small inventory type program, it entails walking around some map and picking up items. For quick prototyping purposes i've created an array with the items in the map. The first field is the name, the second is quantity, and the third is in which zone that item can be found.
Code:
char *wildItems[][3]={{"HP Potion", "1", "1"}, {"Apple", "2", "1"}, {"Apple", "2", "2"}};
Now after this it becomes just picking up items. I can display it all great, but now my question is after an item is picked up, how can I remove that item from the array instead of just putting some dummy value for the zone?