www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/22/04:25:48

Date: Thu, 22 Oct 1998 11:23:37 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Mark Tsui <tsui AT netspace DOT net DOT au>
cc: djgpp AT delorie DOT com
Subject: Re: Pi
In-Reply-To: <70mqm1$st1$1@otis.netspace.net.au>
Message-ID: <Pine.SUN.3.91.981022111815.3047A-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Thu, 22 Oct 1998, Mark Tsui wrote:

> This is a program I tried to write for pi.

You don't need to compute it, since there's the M_PI constant in math.h.

> for some reason, the program seem to display very poor accuracy. about 5-6
> decimal points.

This is the default print accuracy, use specific formats to print more 
digits.

> also, is there a way to clear the screen instead of \n?

Use library functions clrscr or clreol.

> and I cannot make breakpoints in my program. I suspect that it is not
> compiled with the -g switch, but I made sure that it is, and I still can't
> get the break points to work

You need to post the exact command line(s) used for compiling and 
linking, and the exact procedure you used to set breakpoints and run your 
program under a debugger (you didn't even tell which debugger did you 
use).  Also, please tell which version of what operating system do you 
use DJGPP on.

- Raw text -


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