From: "Dan Goodman" Newsgroups: comp.os.msdos.djgpp Subject: Re: Dynamic Arrays and C++ Date: Fri, 26 Jun 1998 21:55:09 +0100 Message-ID: <898894440.5848.0.nnrp-03.9e989aee@news.demon.co.uk> References: <3592CD96 DOT 78DB0FBC AT ipass DOT net> NNTP-Posting-Host: fcbob.demon.co.uk Lines: 24 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk >It must be a typo in your book (or it's just a bad book). The following >is one way to do it: > > int **test; > test = new int *[8]; > for (int i=0;i<8;i++) > test[i] = new int[8]; Having done this would we just use the variable like this: x = test[a][b] For instance, and would the delete procedure be like this? for(i=0;i<8;i++) delete test[i]; delete test; Thanks, Dan