delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/27/07:31:49

From: Michal Mertl <XMERM05 AT vse DOT cz>
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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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

- Raw text -


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