#include <iostream>
using namespace std;
int main()
{
char a;
//*********switch中可以包括整形,字符型,bool,enum,但不能写"x",也不能为空***************//
switch(a);
switch("a")
{
case 1:
cout<<"1"<<endl;
cout<<"no 1"<<endl;
}
switch()
{
case 2:
cout<<"2"<<endl;
cout<<"no 2"<<endl;
}
return 0;
}
以上代码编译未通过