Re: Any idea why this program is not generating an output ?
- From: William Pursell <bill.pursell@xxxxxxxxx>
- Date: Mon, 7 Apr 2008 23:09:04 -0700 (PDT)
On 8 Apr, 06:53, lector <hannibal.lecto...@xxxxxxxxx> wrote:
#include <stdio.h>
#include <math.h>
#define M_PI 3.14159
Why redefine M_PI? In my math.h, it is given a value
of 3.14159265358979323846. You lose a lot of precision
by redifining it, and don't gain anything. I'm surprised
you don't get a compiler warning.
.
- Follow-Ups:
- Re: Any idea why this program is not generating an output ?
- From: Richard Heathfield
- Re: Any idea why this program is not generating an output ?
- From: lector
- Re: Any idea why this program is not generating an output ?
- References:
- Prev by Date: Re: What are the differences in EOF & FEOF in the
- Next by Date: Re: Any idea why this program is not generating an output ?
- Previous by thread: Re: Any idea why this program is not generating an output ?
- Next by thread: Re: Any idea why this program is not generating an output ?
- Index(es):
Relevant Pages
|