home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!pipex!warwick!bham!pickerig
- From: pickerig@eee.bham.ac.uk (Mr. G. Pickering)
- Subject: 'new' syntax?
- Summary: new syntax for arrays of pointers to pointers
- Sender: usenet@rs6000.bham.ac.uk (USENET News Service)
- Message-ID: <1992Nov13.095152.26819@rs6000.bham.ac.uk>
- Date: Fri, 13 Nov 1992 09:51:52 GMT
- Organization: The University of Birmingham, England
- X-Newsreader: TIN [version 1.1 PL6]
- Keywords: pointer new syntax
- Lines: 23
-
- Hi,
-
- I want to create an array of 'size' long**, is the correct syntax:
-
- long*** new_blocks = new (long**[size]);
-
- I am having memory corruption problems and suspect this is not doing
- what I really want.
-
- Thanks,
-
- Guy
-
- --
- +--------------------------------+-----------------------------------------+
- | Guy Pickering | School of Electronic & Electrical Eng, |
- | E-MAIL: G.PICKERING@uk.ac.bham | University of Birmingham, |
- | Tel: (021) 414 4340 | Edgbaston, Birmingham. B15 2TT. |
- +--------------------------------+-----------------------------------------+
- | "I have ten pairs of trainers...One for each day of the week" - Sam Fox |
- +--------------------------------+-----------------------------------------+
-
-
-