From: Endlisnis Newsgroups: comp.os.msdos.djgpp Subject: Re: Dynamic Arrays and C++ Date: Wed, 8 Jul 1998 17:22:25 -0300 Organization: University of New Brunswick Lines: 13 Message-ID: References: <6o0ck8$hs0$1 AT news DOT bctel DOT net> NNTP-Posting-Host: sol-alt1.unb.ca Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII In-Reply-To: <6o0ck8$hs0$1@news.bctel.net> To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk ->>Ok, I don't usually post here, but I've run out of options. I've been ->>trying to figure out why I'm getting an error on this line of code: ->> ->> int *test = new int[8][8]; You can't dynamically allocate a multi-dimensional arrays in C++. You could say: int* test = new int[64]; And then use test[x*8+y] to resolve test[x][y]. Or, if the dimensions are constants, don't dynamically allocate. Endlisnis [I have a pyramid of wingyness]