添加头函数
#include<cmath>
对于整数:
int abs(int i)
对于浮点数:
double fabs(double i)
float fabs(float i)
C++11标准
double abs (double x);
float abs (float x);
long double abs (long double x);
double abs (T x);
添加头函数
#include<cmath>
对于整数:
int abs(int i)
对于浮点数:
double fabs(double i)
float fabs(float i)
C++11标准
double abs (double x);
float abs (float x);
long double abs (long double x);
double abs (T x);
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。