Date: Tue, 29 Jul 1997 22:30:41 -0500 (CDT) From: Andrew Deren To: Majisun cc: djgpp AT delorie DOT com Subject: Re: Same NEWBIE, with similar question. In-Reply-To: <01bc9c3d$c65c3100$683d31cf@default> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On 29 Jul 1997, Majisun wrote: > Ok, Everything works out fine now in my starfield program, except this. > stuff before this > class star > { > unsigned short x; /*lots of other stuff, but this is all you need */ > } > > star starfield = new star[MAX_DOTS]; This should be: star *starfield = new star[MAX_DOTS]; > > my class defines each variable randomly, but now it says that > > starfield[next].x = rand() % SCREEN_W; /* the screen width */ > > this won't compile because > > Error: invalid types 'star[int]' for array > > What does this error message mean. > > Sorry for the newbie-type question, someday I'll be able to debug all of my > code myself, not just parts of it. > > -Sthel Majisun >