> 其他 >
pow(x,y)中x,y一定要是double型吗?
如题,请帮忙解决.
人气:395 ℃ 时间:2020-04-13 04:11:37
解答
double pow(double x,double y)
这是C语言书中的格式.
但是x,y可以为别的类型,例如整型,返回值肯定为double举个例子
double s;
s=pow(3,2);
那么s=9.000000
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版