From: James Shatto Newsgroups: comp.os.msdos.djgpp Subject: Help: Array subscript not an integer...??? Date: Tue, 11 Mar 1997 04:49:41 -0500 Organization: Army Lines: 22 Message-ID: <33252AB5.2E8B@postoffice.worldnet.att.net> Reply-To: Jcs DOT Shadow AT worldnet DOT att DOT net NNTP-Posting-Host: 207.146.85.151 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit CC: Jcs DOT Shadow AT worldnet DOT att DOT net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp I'm trying to learn C and C++... I've written this in C and when it's compiled, I get an array subscript not an integer. Any suggestions...??? #define NUMH 96 float height_table[NUMH] = {75.23, 75.35, 75.48, 75.60, 75.72, 75.84, 75.96, 76.09, 76.21, 76.33, 76.45, 76.56, 76.68, 76.80, 76.92, 77.04, that's part of the data... when I try to use it with the following, it gives the error. array subscript not an integer. I'm compiling with the gcc of djgpp... strtoul(height_table[hf],NULL,hmf); hmf = height_table[hf]; both of these return the same error, hmf and hf are float integers. Please help...I can't get this thing to work... Jcs DOT Shadow AT worldnet DOT att DOT net James Shatto