Date: Thu, 22 Oct 1998 11:23:37 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Mark Tsui cc: djgpp AT delorie DOT com Subject: Re: Pi In-Reply-To: <70mqm1$st1$1@otis.netspace.net.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.