提交时间:2024-01-23 17:09:36

运行 ID: 125537

#include<iostream> using namespace std; int main(){ int p,s; char w; cin>>p>>w>>s; switch (s) { case 0: cout<<"Divided by zerol!";return 0; } switch (w){ case 43: cout<<"";break; case 45: cout<<"";break; case 42: cout<<"";break; case 47: cout<<p/s;break; default : cout<<"Invalid operator!"; } return 0; }