At 10:07 1998.09.17 +0000, holotko wrote:
> ~foo()
> { delete c; }
Right, except that you should use "delete[] c;".
For more info, you can read the section 16 of the C++ FAQ at :
http://www.cerfnet.com/~mpcline/c++-faq-lite/
Also mirrored at (among others) :
http://www.cs.bham.ac.uk/~jdm/CPP/index.html
HTH.
Andr� Majorel
[EMAIL PROTECTED]
http://www.teaser.fr/~amajorel/
- Using new/delets in C++ Constructors/Destructors... holotko
- Re: Using new/delets in C++ Constructors/Destruct... John Alvord
- Re: Using new/delets in C++ Constructors/Destruct... Andre Majorel
- Re: Using new/delets in C++ Constructors/Destruct... holotko
- RE: Using new/delets in C++ Constructors/Destruct... Niels Hald Pedersen
- RE: Using new/delets in C++ Constructors/Dest... Glynn Clements
- RE: Using new/delets in C++ Constructors/Dest... Marin D
