贤惠路人

文章
5
资源
0
加入时间
4年2月0天

ceil函数

ceil()函数需要头文件 #include<math.h> 作用:求不小于某值的最小整数(求上界) eg: ceil(6.04)为7注意:若 int s=6 , v=5 ; ceil(s/v)=1 因为先计算s/v,值为1,然后计算ceil(1),仍然为1. 若double s=6,v=5; ceil(s/v)=2...