linux     #include<cmath>   fabs()

windows #include <cmath>  abs()

更多推荐

abs在linux 与windows 的不同