On 8/1/2012 11:12 AM, TheGunslinger wrote:
>
> That said, I am fully aware that that this is a "C" forum, and as
> indicated in my response, I searched with "C" as a parameter.
Then why did you offer a C++ answer? (As it happens, even
if the O.P. had been using C++ your answer would not have helped;
his problem was not with compilation, but with linking.)
> One of the bigger problems today is that many of the newer compilers
> are not strictly "C" systems.
Not sure what you mean by this, or why it would matter. If
Compiler X conforms imperfectly to the C Standard, does it then
make sense to answer as if for COBOL?
> And the website I listed is a C programming support site.
No; the web site's *title* says its about C. But the site
itself is not! Here's the code from the page you linked to:
//Example will output 5.9 rounded down
#include <cmath>
#include <iostream>
using namespace std;
int main()
{
cout<<"5.9 rounded down: "<<floor(5.9);
}
> So, if you have a problem with my response, perhaps you should really
> take it up with the website referenced.
First, it wasn't very smart of you to offer a link to a
poor-quality web site. (The site may have other fine qualities,
but for the question at hand its quality is poor.) Second, your
own text in the body of your own message -- something you can't
blame on a web site -- was a C++ answer, not applicable to C.
> Disclaimer: Have a FLAME. Take it to somebody who cares! Here's your
> sign... "I am stupid!" , Jeff Foxworthy
Earlier I wrote that I thought you were trying to be helpful.
I'm starting to doubt myself.
--
Eric Sosman
d