switch(str)
{
case "a "
***
break;
csae "b "
***
break;
}
我想写成case "a ", "b " 也就是双重判断,然后执行!该怎么写啊 我用 ", "分割不行啊
哥们们帮忙啊!!!!
------解决方案--------------------------------------------------------
case a:
case b:
// do something;
------解决方案--------------------------------------------------------
case "a ":case "b ":***break;
------解决方案--------------------------------------------------------
case "a ":case "b ":
***
break;