switch case is in protected scope错误解决方法

如果出现switch case is in protected scope,可在switch中的case后加{}即可。但要主要如果case较多,需在每个case后都加上{}才能编译通过

posted @ 2014-11-19 14:31  老皮硕  阅读(488)  评论(0编辑  收藏  举报