帮找下错误
程序运行时没错误,但没输出。各位帮我看看,谢谢!#include<iostream.h>
void main()
{
float coure;
cin>>coure;
while (coure>100 ||coure<0)
{
cout<<"error\n";
}
switch ((int)coure/10)
{
case '9':cout<<"优\n";break;
case '8':cout<<"良\n";break;
case '7':cout<<"中\n";break;
case '6':cout<<"及格\n";break;
case '5':cout<<"不及格\n";break;
case '4':
case '3':
case '2':
case '1':
case '0':cout<<"不及格\n";break;
}
}
[[italic] 本帖最后由 lengmo_yu 于 2007-12-18 13:09 编辑 [/italic]]