标签:c style class blog code java
原型:
double abs (double x); float abs (float x); long double abs (long double x); double abs (T x); // additional overloads for integral types
代码:
// cmath‘s abs example #include <iostream> // std::cout #include <cmath> // std::abs int main () { std::cout << "abs (3.1416) = " << std::abs (3.1416) << ‘\n‘; std::cout << "abs (-10.6) = " << std::abs (-10.6) << ‘\n‘; return 0; }
标签:c style class blog code java
原文地址:http://www.cnblogs.com/cpphello/p/3762498.html