From: "Robert B. Clark" Newsgroups: alt.comp.lang.learn.c-c++,comp.os.msdos.djgpp Subject: Re: Problem with int[][] Organization: ClarkWehyr Enterprises Message-ID: References: X-Newsreader: Forte Agent 1.8/32.548 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 18 Date: Thu, 22 Mar 2001 23:42:42 GMT NNTP-Posting-Host: 24.183.85.252 X-Complaints-To: abuse AT earthlink DOT net X-Trace: newsread1.prod.itd.earthlink.net 985304562 24.183.85.252 (Thu, 22 Mar 2001 15:42:42 PST) NNTP-Posting-Date: Thu, 22 Mar 2001 15:42:42 PST To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Daniel Eliasson" wrote: >I keep getting these messages when I use my array: > >player.cpp:55: invalid types `int[int]' for array subscript >player.cpp:57: invalid types `int[int]' for array subscript >Does anyone know what's wrong? I define map like this: >int map[GRIDSIZE][GRIDSIZE]; > >(GRIDSIZE is a const int with the value of 128 (const int GRIDSIZE = 128;)) Need more. Where is GRID_PLAYER? GRID_EMPTY? -- Robert B. Clark Visit ClarkWehyr Enterprises On-Line at http://home.earthlink.net/~rclark31/ClarkWehyr.html