【摘要】 函数原型函数名: sqrt功 能: 计算平方根函数原型:#include <math.h>double sqrt(double x);注意函数参数和返回值都是double类型,使用时一定要进行转换,不然可能会发生一些未知错误。程序例://平方根测试 #include<stdio.h>#include<math.h>int main(){ //如果参数是int型,那么sqrt()会将int型…
函数原型
函数名: sqrt
功 能: 计算平方根
函数原型:
#include <math.h>
double sqrt(double x);
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
喜欢就支持一下吧
相关推荐