Mail Archives: djgpp/1997/08/05/07:18:40
From: | Mark J Gallagher <mjgallagher AT taz DOT dra DOT hmg DOT gb>
|
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
|
Lines: | 20
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
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];
- Raw text -