C++问题
#include<iostream>using namespace std;
int main()
{
float score;
int a;
cout<<"input score(o~100):";
cin>>score;
a=score/10; //a的值为舍弃score的各位数后的值
switch(a)
{
case 10:
case 9:cout<<"excellent!"<<endl;
break;
case 8:cout<<"good!"endl;
break;
case 7:cout<<"right!"<<endl;
break;
case 6:cout<<"pass!"<<endl;
break;
default:cout<<"failed!"<<endl;
}
return 0;
}
哪错了呢 执行出来missing ';' before identifier 'endl'