Subj : Re: Math error ??? doen't make sense! To : borland.public.cpp.borlandcpp From : Stan DeGroff Date : Sun Jul 04 2004 12:16 am Good idea. "Bob Gonder" wrote in message news:vu3be0po64slnphgo5utuiinbin898e7d5@4ax.com... > Stan DeGroff wrote: > > >I Programmed in Assembly, Fortran, DbaseIV, MS Prof Basic pre-Win for many > >years. > >This new stuff is mind blowing. So.. I ask for your patient help. > > I'll just throw in another suggestion besides all the code corrections > you've been given. > > Since you have assembly background, you might want to fire up TD, the > debugger, and View Cpu which shows the assembly code and allows you to > watch what happens to the registers as you step through it. > > You probably would have seen the overflow condition. > > That's how I learned C. Write it. It doesn't work. Step through it and > see what the crazy compiler did to my nice code. Often I would write > the same code three different ways, compile it, and then look at the > assembly and find which method caused the compiler to create what I > thought I meant it to do. > > .