delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/06/02:59:22

From: "Keith McCormick" <kdm98 AT spiritone DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Only Errors... :-(
Date: 5 Aug 1999 09:49:54 GMT
Organization: <none>
Lines: 60
Message-ID: <933846594.301468@ridge.spiritone.com>
References: <e00q3.67$qv DOT 3117 AT news DOT tli DOT de> <37A8A42A DOT 7B620B6 AT snip DOT net> <OL1q3.70$qv DOT 3522 AT news DOT tli DOT de> <dt2q3.40012$Q4 DOT 132948 AT wagner DOT videotron DOT net>
NNTP-Posting-Host: ridge.spiritone.com
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
X-Trace-ISP: 933846593 25001 208.130.243.71 hf5n/F9:xqz98
X-Complaints-To-ISP: abuse at spiritone dot com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Try indenting.  ie.,

class Player
  {
   private:
     int lives;

   public:
    void move(void);
  };

KeithM


Michel Chassey <cecile AT megacom DOT net> wrote in message
news:dt2q3.40012$Q4 DOT 132948 AT wagner DOT videotron DOT net...
> Since this seems to be a thread for and by newbies I'll take a shot at
> answering.
> The first error means anything AFTER the last " } ",  " ) " or " ; ", is
> considered by the compiler as being on the same line as class Player. You
> might have erased a end-of-line symbol BEFORE  class Player.
> Resolve the first error and the others disappear .
> My humble opinion,
>                                     Michel Chassey  :)
>
> Amin Kharchi <kharchi AT gmx DOT de> a écrit dans le message :
> OL1q3.70$qv DOT 3522 AT news DOT tli DOT de...
> > Hello!
> >
> > Hyper schrieb in Nachricht <37A8A42A DOT 7B620B6 AT snip DOT net>...
> > >i'm really new to programming (only did simple math programs, and stuff
> > that
> > >really has no point).  My best guess is this.  Since i'm new to this i
> > don't
> > >know, but i'd say the problem is your "class player" line.  It doesn't
> > appear to
> > >be a function (No () ), and it doesn't appear to be a variable.  is
class
> a
> > >function you have made or something?  please don't flame me for my
> > ignorance,
> > >i'm learning so i might be wrong
> >
> >
> > No, it's a class in C++. If you learn C you don't know it... But my
> problem
> > is, what did the compiler mean with "parse error before" ??? The can't
> find
> > in zhe sourcecode errors... and I don't know what to do.
> >
> > --
> > Amin Kharchi
> > Wolfsburg, Germany
> >
> >
> >
>
>


- Raw text -


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