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![]()
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.


Reply With Quote