Mail Archives: djgpp/1999/12/09/00:41:30

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: <>
References: <dPE24.416$wM4 DOT 28044 AT news-west DOT eli DOT net>
Mime-Version: 1.0
X-Trace: 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" <paulkennedy AT citlink DOT net>

> 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.


- Raw text -

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