cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/30/17:18:23

From: "Majisun" <username AT infowest DOT com>
Subject: Re: Same NEWBIE, with similar question.
Newsgroups: comp.os.msdos.djgpp
References: <Pine DOT SUN DOT 3 DOT 95 DOT 970729223000 DOT 3497B-100000 AT ernie DOT eecs DOT uic DOT edu>
Message-ID: <01bc9d11$996577e0$633d31cf@default>
NNTP-Posting-Host: dialup2-24.infowest.net
Date: 30 Jul 97 17:51:04 GMT
Lines: 39
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp


Andrew Deren <aderen AT eecs DOT uic DOT edu> wrote in article
<Pine DOT SUN DOT 3 DOT 95 DOT 970729223000 DOT 3497B-100000 AT ernie DOT eecs DOT uic DOT edu>...
> 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
> > 
> 
> 
Thanks again!

	-Sthel Majisun

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019