home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / cplus / 13576 < prev    next >
Encoding:
Internet Message Format  |  1992-09-13  |  756 b 

  1. Path: sparky!uunet!know!hri.com!spool.mu.edu!darwin.sura.net!gatech!psuvax1!rutgers!njitgw.njit.edu!hertz.njit.edu!jxd7299
  2. From: jxd7299@hertz.njit.edu (Jing X Ding)
  3. Newsgroups: comp.lang.c++
  4. Subject: help
  5. Message-ID: <1992Sep13.164046.24676@njitgw.njit.edu>
  6. Date: 13 Sep 92 16:40:46 GMT
  7. Sender: news@njit.edu
  8. Organization: New Jersey Institute of Technology, Newark, N.J.
  9. Lines: 19
  10. Nntp-Posting-Host: hertz.njit.edu
  11.  
  12.  
  13.     PROD *A;//PROD is a defined class
  14.        :
  15.        :
  16.     for (...){
  17.     A=(PROD*)new char [totalprod*sizeof(PROD)];//totalprod is a const
  18.        :
  19.        :
  20.      Place 1
  21.     }
  22.      Place 2
  23.  
  24. The problem is :(1) Where can I use destructure to free memory (Place 1 or
  25. Place 2)? (2) How to write the destructure?
  26.  
  27. Thank you so much!
  28.  
  29.  
  30. Jing Ding(jxd7299@hertz.njit.edu)
  31.