Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

c 中的abs 和c++中的abs 不一样。。。。 c 总要用fabs

Posted by fly2best at 2012-11-14 20:02:20 on Problem 3565
c++ 

<cmath>

     double abs (      double x );
      float abs (       float x );
long double abs ( long double x );

c

 int abs(int j);
 long int labs(long int j);
 long long int llabs(long long int j);

c 中要用 fabs
 double fabs(double x);
 float fabsf(float x);
 long double fabsl(long double x);


Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator