ISO C89 forbids mixed declarations and code
来源:互联网 发布:北漂 知乎 编辑:程序博客网 时间:2024/05/17 09:16
编译器出现ISO C89 forbids mixed declarations and code怎么办?
如:
case 1:
printf("hello word!");
int a=0;
break;
就会报这个错
报这个错有一个原因,就是定义或声明的变量前不能有分号!这里有一个方法可以避免,把代码改成如下:
case 1:
int a=0;
printf("hello word!");
break;
0 0
- ISO C89 forbids mixed declarations and code
- ISO C89 forbids mixed declarations and code
- ISO C90 forbids mixed declarations and code
- ISO C90 forbids mixed declarations and code
- ISO C90 forbids mixed declarations and code 警告
- ISO C90 forbids mixed declarations and code 警告
- ISO C90 forbids mixed declarations and code 警告
- warning:ISO C90 forbids mixed declarations and code
- ISO C90 forbids mixed declarations and code 警告
- ISO C90 forbids mixed declarations and code 警告
- warning:ISO C90 forbids mixed declarations and code
- warning:ISO C90 forbids mixed declarations and code
- ISO C90 forbids mixed declarations and code 警告
- ISO C90 forbids mixed declarations and code[-Wdeclaration-after-statement]
- warning: ISO C90 forbids mixed declarations and code
- warning:ISO C90 forbids mixed declarations and code
- 编译警告:ISO C90 forbids mixed declarations and code
- error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
- A == B ?
- 关于矩阵的一些基本运算
- STM32高分辨率定时器(HRTIM)使用实例之PWM
- 变量、数组、泛型、集合
- linux 临时增加swap空间
- ISO C89 forbids mixed declarations and code
- ANDROID开发环境搭建
- 从线上走向线下的用户体验
- 黑马程序员_java基础_集合(Collection和List、Set)
- MFC 学习之 下拉列表框
- svd 推荐算法
- Dalvik opcodes
- 第十二周项目一:- 教师兼干部类
- word异常