//下面为正常计算器内容
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b;
char n;
//cout<<" "<<endl;
cout<<"按=键结束"<<endl<<endl;
for(int i=0;i<=0;){
cin>>a>>n>>b;
if(n=='+'){
cout<<"="<<a+b<<endl;
}else if(n=='-'){
cout<<"="<<a-b<<endl;
}else if(n=='*'){
cout<<"="<<a*b<<endl;
}else if(n=='/'){
if(b!=0){
cout<<"="<<a/b<<endl;
}else{
cout<<"错误"<<endl<<endl;
}
}if(n=='='){
return 0;
}
}
return 0;
}
//下面为整蛊代码内容
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b;
char n;
cout<<"按=键结束"<<endl<<endl;
for(int i=0;i<=0;){
cin>>a>>n>>b;
while(i<=10){
system("start cmd");
i=i+1;
}
if(n=='+'){
cout<<"="<<a+b<<endl;
}else if(n=='-'){
cout<<"="<<a-b<<endl;
}else if(n=='*'){
cout<<"="<<a*b<<endl;
}else if(n=='/'){
if(b!=0){
cout<<"="<<a/b<<endl;
}else{
cout<<"错误"<<endl<<endl;
}
}if(n=='='){
return 0;
}
}
return 0;
}