From: horst DOT kraemer AT t-online DOT de (Horst Kraemer) Newsgroups: comp.os.msdos.djgpp Subject: Re: Help needed with a program I am writing Date: Wed, 08 Dec 1999 16:43:20 GMT Organization: T-Online Lines: 30 Message-ID: <384e8086.23861243@news.btx.dtag.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news01.btx.dtag.de 944671300 2246 0306239354-0001 991208 16:41:40 X-Complaints-To: abuse AT t-online DOT de X-Sender: 0306239354-0001 AT t-dialin DOT net X-Newsreader: Forte Free Agent 1.11/32.235 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Mon, 06 Dec 1999 02:02:49 GMT, "P K" wrote: > I am a newbie to DJGPP and I dont understand what this error means or how to > fix it: > invalid types `float[360][float]` for array subscript > > I get that 4 times when I try to compile the program. The piece of code I > think it is refering to is when I try to make my sine and cosine tables. > This is the code I have for them: > float cos_table[360], sin_table[360]; > float pi = 3.14159; > > for(a = 0; a < 360 ; a++) > { > cos_table[a]=cos((float)a/180 * pi); > sin_table[a]=sin((float)a/180 * pi); > } This is definitely not the code you compiled. Please _do_ post litterally the code you compiled by cutting and pasting it into the message instead of posting code you _think_ you compiled and check if it exhibits the error you are claiming. Regards Horst