home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / cplus / 18665 < prev    next >
Encoding:
Internet Message Format  |  1993-01-04  |  649 b 

  1. Path: sparky!uunet!pipex!bnr.co.uk!uknet!edcastle!dcs.ed.ac.uk!tk
  2. From: tk@dcs.ed.ac.uk (Tommy Kelly)
  3. Newsgroups: cs.questions,comp.lang.c++
  4. Subject: Dynamic Multidimensional Array Allocation in C++
  5. Message-ID: <C0C68I.MA7@dcs.ed.ac.uk>
  6. Date: 4 Jan 93 15:41:06 GMT
  7. Sender: cnews@dcs.ed.ac.uk (UseNet News Admin)
  8. Reply-To: tk@dcs.ed.ac.uk (Tommy Kelly)
  9. Organization: Laboratory for the Foundations of Computer Science, Edinburgh U
  10. Lines: 11
  11.  
  12. How do I implement a dynamically configurable two dimensional array in C++?
  13.  
  14. For one dimension its easy, but doing:
  15.  
  16. my_type *my_type_var = new my_type[a][b];
  17.  
  18. doesn't seem to work.
  19.  
  20. thanks for any help.
  21.  
  22. tk
  23.