为什么我只有40分?????????!!!!!!!!!!!!!!!!

ykj39 西瓜 2023-12-07 19:50:56 20

头文件我写了 int n,m; cin>>n>>m; int b=(n-100)0.9; if(m>b1.1) cout<<"fat"; else if(m<b*0.9) cout<<"thin"; else cout<<"standard"; return我写了

{{ vote && vote.total.up }}

共 4 条回复

root 站长

\* 来输出称号

12121 Game for peace

还有,你写的是if(m>b1.1),乘号去哪儿了?

12121 Game for peace

int变量乘小数过后会自动转换成小数,要用double才行!

root 站长

试试 double