违规用户名Jx9)zIu @ 2024-09-17 20:49:21
#include<bits/stdc++.h>
using namespace std;
int main(){
int n,m;
cin>>n>>m;
char a;
cin>>a;
if(a=='/'){
if(m==0){
cout<<"Divided by zero!";
}else{
cout<<n/m;
}
}else if(a=='+'){
cout<<n+m;
}else if(a=='-'){
cout<<n-m;
}else if(a=='*'){
cout<<n*m;
}else{
cout<"Invalid operator!";
}
return 0;
}
这咋了
by ___Furina___ @ 2024-09-17 20:50:37
@违规用户名Jx9)zIu 最后一个 cout
少打了一个 <
by 违规用户名Jx9)zIu @ 2024-09-17 20:51:20
@Furina
哦
by Y_zhao111 @ 2024-09-17 20:51:44
@Furina 捉。
by lzdqwq @ 2024-09-17 20:52:02
你**吧,连 <<
都少打一个。
by ___Furina___ @ 2024-09-17 20:52:29
@黑客少年 awa
by 违规用户名Jx9)zIu @ 2024-09-17 20:57:20
@lzdqwq
震惊,我编译器还能运行!