home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / cplus / 18372 < prev    next >
Encoding:
Text File  |  1992-12-23  |  613 b   |  20 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!microsoft!wingnut!pauljo
  3. From: pauljo@microsoft.com (Paul Johns)
  4. Subject: Re: Make a deep copy!
  5. Message-ID: <1992Dec23.210224.566@microsoft.com>
  6. Date: 23 Dec 92 21:02:24 GMT
  7. Organization: Microsoft Corp.
  8. References: <kwong.724744711@morgan> 
  9. Distribution: usa
  10. Lines: 8
  11.  
  12. Specifically, you need a copy constructor which
  13. copies the data pointed to by the pointer in the
  14. object.  (You should copy both the actual data
  15. and the array of pointers--I think you missed
  16. copying the array of pointers in your assignment
  17. operator.)
  18.  
  19. Also, read a good C++ text for other pointers.
  20.