c++ 的绝对值函数

添加头文件

#include <cmath>

对于整数

abs();

对于浮点数

fabs();

猜你喜欢

转载自www.cnblogs.com/houchen/p/9145456.html
今日推荐