From: Mark J Gallagher Newsgroups: comp.os.msdos.djgpp Subject: Re: A very newbie question. Very newbie. Date: Wed, 30 Jul 1997 12:15:35 -0700 Organization: DERA Message-ID: <33DF92D7.B29@taz.dra.hmg.gb> References: <01bc9bae$0a7b5180$6d3d31cf AT default> NNTP-Posting-Host: 146.80.70.70 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 20 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Majisun wrote: > Alright, this may sound stupid, but I forgot how to define an array. > is this how you do it: > > class star > { > /* star stuff here*/ > } > star starfield[100]; > > If so, how come it says > error: don't know how much storage space for starfield, and points me > to the line above? You need a semi-colon after the class definition, i.e. class star { /* star stuff here*/ }; star starfield[100];