错误:‘for’ loop initial declarations are only allowed in C99 or C11 mode
setting=>Compiler settings=>other options
下面加入这样一句话
-std=c99
如果没有使用code::block则应该在命令行中敲入
gcc 1.c -std=c99 -o 1
其中1.c是源代码文件。
错误:‘for’ loop initial declarations are only allowed in C99 or C11 mode
setting=>Compiler settings=>other options
下面加入这样一句话
-std=c99
如果没有使用code::block则应该在命令行中敲入
gcc 1.c -std=c99 -o 1
其中1.c是源代码文件。