From: Chih Hui Newsgroups: comp.os.msdos.djgpp Subject: Re: I HAVE A PARSE ERROR AND I CAN"T FIX IT!!! Date: Mon, 28 Jun 1999 18:27:39 +0800 Organization: Subscriber of Pacific Internet Lines: 17 Message-ID: <37774E1A.BD1FE866@singmail.com> References: NNTP-Posting-Host: ppp182.dyn96.pacific.net.sg Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.03 [en] (Win95; I) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Gregory Akselrod wrote: > > I have an error and I can't seem to resolve it. Attached to this e-mail is > the source code to my code. Every time I try to compile it I get an error: > > 4_function_calc.cc:48: parse error before `else' Change the if (Wdivide == 1); in the main() to if (Wdivide == 1) That will solve your compilation error. Note that beside this error, there are other errors in your code.