static array of pointers

Hi all,

If someone would be kind enough to give me an example of removing an element from a static array of pointers which is pointing to a dynamic address without memory leakage, I would be grateful. Cheers!
what is a static array?

I mean, you can do this

static type* array[somesize]; //??? is this what you meant?

main()
...
removish(array, 10);
...

void removeish(type * tp, int index) //is type a ** here, or a double array, or other?
{
delete[] tp[index];
tp[index] = null;
}

Last edited on
Topic archived. No new replies allowed.