home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / cplus / 16206 < prev    next >
Encoding:
Text File  |  1992-11-13  |  1.2 KB  |  37 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!pipex!warwick!bham!pickerig
  3. From: pickerig@eee.bham.ac.uk (Mr. G. Pickering)
  4. Subject: 'new' syntax?
  5. Summary: new syntax for arrays of pointers to pointers
  6. Sender: usenet@rs6000.bham.ac.uk (USENET News Service)
  7. Message-ID: <1992Nov13.095152.26819@rs6000.bham.ac.uk>
  8. Date: Fri, 13 Nov 1992 09:51:52 GMT
  9. Organization: The University of Birmingham, England
  10. X-Newsreader: TIN [version 1.1 PL6]
  11. Keywords: pointer new syntax
  12. Lines: 23
  13.  
  14. Hi,
  15.  
  16. I want to create an array of 'size' long**, is the correct syntax:
  17.  
  18.   long*** new_blocks = new (long**[size]);
  19.  
  20. I am having memory corruption problems and suspect this is not doing
  21. what I really want.
  22.  
  23. Thanks,
  24.  
  25. Guy
  26.  
  27. --
  28. +--------------------------------+-----------------------------------------+
  29. | Guy Pickering                  | School of Electronic & Electrical Eng,  |
  30. | E-MAIL: G.PICKERING@uk.ac.bham | University of Birmingham,               |
  31. | Tel: (021) 414 4340            | Edgbaston, Birmingham. B15 2TT.         |
  32. +--------------------------------+-----------------------------------------+
  33. | "I have ten pairs of trainers...One for each day of the week" - Sam Fox  |
  34. +--------------------------------+-----------------------------------------+
  35.  
  36.  
  37.