abs全称是 a function returns the absolute value of its parameter.这是一个函数,返回它的参数(整型)的绝对值.abs 是 absolute value (绝对值)缩写.c++ 中的一个数学函数,计算整型量的绝对值.要头文件 #include 或 #include 算例: int x=16,y= -6; cout