先用宏定义“定义”一个 绝对值#include #define abs(x) (x<0?-x:x) //小于0就取相反数int main(){ int c = abs(x*x+y); //这是题主要的表达式 printf("%d ",c);}
c=fabs(x*x+y);~~