From: Michal Mertl Newsgroups: comp.os.msdos.djgpp Subject: Re: My second function doesn't work (stupid newbie question) Date: Mon, 23 Jun 1997 14:25:32 -0700 Organization: VSE Praha Lines: 15 Message-ID: <33AEE9CC.5D11@vse.cz> References: <33ac9f87 DOT 20873600 AT news DOT mindspring DOT com> NNTP-Posting-Host: s108h05.vse.cz Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk dabrownz AT mindspring DOT com wrote: > > DJGPP keeps telling me that there is something wrong with my second > function. I don't see why. Please help, I'm a stupid newbie and I'll > appriciate any help (the answer is probably right under my nose) > > > float computeHero(float a, float b, float c, float s) > { > return (s(s - a)(s - b)(s - c)); > } You forgot to ty type the multiplication signs, didn't you. return (s*(s-a)*(s-b)*(s-c)); -- Michal