您的位置:首页 > 其它

switch引发的错误:a label can only be part of a statement and a declaration is not a statement

2011-08-05 15:51 609 查看
GCC:

error: a label can only be part of a statement and a declaration is not a statement

switch(a){        swtch(a){

case 1:         case 1:

....................       {

....................        ...............

....................        ...............

break;          ................

case 2:         }

break;          break;

}            case 2:

             break;

            }

Error         OK
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐