www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/03/22/19:01:47

From: "Robert B. Clark" <rclark31 AT earthlink DOT net>
Newsgroups: alt.comp.lang.learn.c-c++,comp.os.msdos.djgpp
Subject: Re: Problem with int[][]
Organization: ClarkWehyr Enterprises
Message-ID: <na3lbt853msf5mfvoa0lpp08hb4c66prvq@4ax.com>
References: <oQgu6.512$I81 DOT 4799 AT nntp1 DOT chello DOT se>
X-Newsreader: Forte Agent 1.8/32.548
MIME-Version: 1.0
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" <danieleliasson AT chello DOT se> 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

<code snipped>

>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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019