"Kyle" <zh**********@hotmail.com> schrieb im Newsbeitrag
news:41******@dnews.tpgi.com.au...
I have the following codes
int (*p)[2];
p=new int [4][2];
...
delete [] p;
is the way to free the memory correct?
Yep. delete [] p; p=NULL; // indicate it's invalid!
--
-Gernot
int main(int argc, char** argv) {printf
("%silto%c%cf%cgl%ssic%ccom%c", "ma", 58, 'g', 64, "ba", 46, 10);}
________________________________________
Looking for a good game? Do it yourself!
GLBasic - you can do
www.GLBasic.com