yeh! The third one doesn't give any errors (haven't tried the others tho
)
But one more question: basically this is an array of pointers to arrays of floats (o, that was difficult)
Code:
|array of pointers
\|/
pointer1 -> array of floats
pointer2 -> array of floats
pointer3 -> array of floats
...
Now, I know that I have to delete an dynamically made array, but do I have to delete each row in this array sperately?
Like:
Code:
|array of pointers
\|/
pointer1 -> array of floats <-- Delete this seperately (delete [] vertexA[0])
pointer2 -> array of floats <-- Delete this seperately (delete [] vertexA[1])
pointer3 -> array of floats <-- Delete this seperately (delete [] vertexA[2])
... etc ...
delete [] vertexA; //delete remaining array of pointers
or can I delete it in one go:
????