Name: Anonymous 2013-01-01 17:07
I need some help.
I'm working on a project that requires a dynamically-sized 2D array of object pointers. How would I go about creating such a thing? I'd like to go with C-style arrays (though if vectors would be easier I'll try it). Would I need to use a triple pointer? Also, I need each element in the array to be NULL when the array is allocated.
I'm working on a project that requires a dynamically-sized 2D array of object pointers. How would I go about creating such a thing? I'd like to go with C-style arrays (though if vectors would be easier I'll try it). Would I need to use a triple pointer? Also, I need each element in the array to be NULL when the array is allocated.