a label can only be part of a statement and a declaration is not a statement
来源:互联网 发布:windows键没反应 win10 编辑:程序博客网 时间:2024/05/29 18:39
本文转自:http://www.cnblogs.com/lovevivi/archive/2012/11/06/2756374.html
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
追问
找到了原因,我在case下面定义了变量,并给它赋了初值,当把定义和赋值分开就好了,或者是加上大括号
0 0
- a label can only be part of a statement and a declaration is not a statement
- a label can only be part of a statement and a declaration is not a statement
- a label can only be part of a statement and a declaration is not a statement
- a label can only be part of a statement and a declaration is not a statement
- a label can only be part of a statement and a declaration is not a statement
- a label can only be part of a statement and a declaration is not a statement
- switch引发的错误 a label can only be part of a statement and a declaration is not a statement
- switch引发的错误:a label can only be part of a statement and a declaration is not a statement
- error: a label can only be part of a statement and a declaration is not a statement
- 错误“a label can only be part of a statement and a declaration is not a statement”解决方法
- 错误“a label can only be part of a statement and a declaration is not a statement”解决方法
- switch 错误:a label can only be part of a statement and a declaration is not a statement
- switch引发的错误 a label can only be part of a statement and a declaration is not a statement
- ERROR:a label can only be part of a statement and a declaration is not a statement
- 【C/C++】error: a label can only be part of a statement and a declaration is not a statement
- C语言:error: a label can only be part of a statement and a declaration is not a statement|
- switch引发的错误 a label can only be part of a statement and a declaration is not a statement
- error: a label can only be part of a statement and a declaration is not a statement
- 第四章 矩阵分解
- Rest风格初解
- QT MD5加密
- Zookeeper之ACL控制
- Caused by: java.lang.ClassNotFoundException: org.aspectj.lang.annotation.Around
- a label can only be part of a statement and a declaration is not a statement
- 利用imwrite函数生成带透明通道的png图像
- 合并表格vba
- 处理缓存响应头与http-equiv的区别
- 通过React Native动态更新iOS应用
- angular中$watch的简单使用
- tesseract-ocr 实现图片识别功能
- linux下UDP客户端通用发送与接受
- Struts2—拦截器之计算action调用时间