home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!know!hri.com!spool.mu.edu!darwin.sura.net!gatech!psuvax1!rutgers!njitgw.njit.edu!hertz.njit.edu!jxd7299
- From: jxd7299@hertz.njit.edu (Jing X Ding)
- Newsgroups: comp.lang.c++
- Subject: help
- Message-ID: <1992Sep13.164046.24676@njitgw.njit.edu>
- Date: 13 Sep 92 16:40:46 GMT
- Sender: news@njit.edu
- Organization: New Jersey Institute of Technology, Newark, N.J.
- Lines: 19
- Nntp-Posting-Host: hertz.njit.edu
-
-
- PROD *A;//PROD is a defined class
- :
- :
- for (...){
- A=(PROD*)new char [totalprod*sizeof(PROD)];//totalprod is a const
- :
- :
- Place 1
- }
- Place 2
-
- The problem is :(1) Where can I use destructure to free memory (Place 1 or
- Place 2)? (2) How to write the destructure?
-
- Thank you so much!
-
-
- Jing Ding(jxd7299@hertz.njit.edu)
-