Click to See Complete Forum and Search --> : refresh my memory please


Recon
02-10-2002, 11:21 PM
I know im being lazy by not looking it up in the msdn but whats the sqrt function? in the cmath library?

Thanks guys Ill be working on the other parts of my programm waiting for you guys to help me out http://63.146.109.206/ubb/wink.gif

im going to be using it in this type of setup
obviosly using Hero's formula!

//class function
float areaTriangle()
{

int semiperm;
semiperm=(side1+side2+side3)/2
return SQRTFUNC(semiperm*(semiperm-side1)*(semiperm-side2)*(semiperm-side3))
}


any thoughts?

------------------
Where there's a whip <crack> thers a way.
A crack on the back says were gonna fight were gonna march all day and night and more cuz we are the slaves of the dark lord's war.

DeadKen
02-11-2002, 01:12 AM
include <math.h>

Its actually located in libc.lib (at least according to MSDN).



------------------
I want an OS, not a hobby...