Hi,
If I have an array created like this:
MyType *array = new MyType[10];
And I want to overwrite one of the elements, do I have to delete
first the old element like this:
delete &array[5];
array[5] = *(new MyType());
Or is this completely wrong and do I have to work with something like "pointers to pointers" to fix this job? If so, how please....
Thanks