Mail Archives: djgpp/1998/10/22/04:25:48
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 -