写了个简单c++程序运行不了,帮忙看看,谢谢啊
#include<iostream>usingnamespacestd;voidmain(){intscore;cout<<"pleaseenterthescore:";...
#include <iostream>
using namespace std;
void main()
{
int score;
cout<<"please enter the score:";
cin>>score;
if(score>90)
{
cout<<"优"<<endl;
}
else if((score>60)&&(score<80))
{
cout<<"合格"<<endl;
}
else if((score>0)&&(score<60))
{
cout<<"不及格"<<endl;
}
else
{
cout<<"输入错误"<<endl;
}
} 展开
using namespace std;
void main()
{
int score;
cout<<"please enter the score:";
cin>>score;
if(score>90)
{
cout<<"优"<<endl;
}
else if((score>60)&&(score<80))
{
cout<<"合格"<<endl;
}
else if((score>0)&&(score<60))
{
cout<<"不及格"<<endl;
}
else
{
cout<<"输入错误"<<endl;
}
} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询