0011 绝对值函数 #include<iostream> #include<cmath>//使用数学函数需添加该开头名 using namespace std; main (){ int x,y; cin>>x; y=x*x-abs(x+2)+5; cout<<y; return 0; }