C++中怎样做开平方根的运算?最好详细点~~~~希望能够提供源码~~~~

热心网友

在C中的math.h库里边有个sqrt函数是用来开方的C的代码如下:#include #include void main(){ printf("the square root of 2 is %d", squrt(2)); }

热心网友

在C中的math.h库里边有个sqrt函数是用来开方的

热心网友

我现在不知道..等一下就会知道了

热心网友

二打六超进化的答案就是不错的。

热心网友

C+++啊。去买本C++++语言的书啊。