填空题
下列程序的输出结果为______。
#include<iostream.h>
void Func(char ch)
switch(ch)
case ’A’:case ’a’:
cout<<"优秀"<<endl;
case ’B’:case ’b’:
cout<<"良好"<<endl;
break;
case ’C’:case ’c’:
cout<<"及格"<<endl;
break;
default:
cout<<"不及格"<<endl;
void main( )
char ch1=’b’
Func(ch1);
Func(’A’);
【参考答案】
良好 优秀 良好