不对啊,什么情况

wc043 2025-11-01 19:57:10 2025-11-01 19:57:33 3

#include<bits/stdc++.h> using namespace std; int a,b; char c; int main(){ cin>>a>>b>>c; if (c='+') cout<<a+b<<endl; else if (c='-') cout<<a-b<<endl; else if (c='') cout<<ab<<endl; else if (c='/' && b != 0) cout<<a/b<<endl; else if (b==0) cout<<"Divided by zero!"; else cout<<"Invalid operator!"; }

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