From: ryot AT bigfoot DOT com (George Ryot) Newsgroups: comp.os.msdos.djgpp Subject: Re: Help needed with a program I am writing Message-ID: <384d44d5.17083771@news.clara.net> References: X-Newsreader: Forte Agent 1.5/32.452 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 23 Date: Mon, 06 Dec 1999 23:47:42 GMT NNTP-Posting-Host: 195.8.92.216 X-Complaints-To: abuse AT clara DOT net X-Trace: nnrp3.clara.net 944524062 195.8.92.216 (Mon, 06 Dec 1999 23:47:42 GMT) NNTP-Posting-Date: Mon, 06 Dec 1999 23:47:42 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "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. I can't see anything obviously wrong with the code you posted, except that maybe you declared 'a' as something other than an int. It would be better to reduce your code to the smallest amount possible that reproduces the error (probably only ten lines in this case) and then post the complete program with the exact error message. You might also find the following newsgroups more useful for non-DJGPP specific questions: alt.comp.lang.learn.c-c++ comp.lang.c -- george