用Dev-C++出现error:
error: ‘for’ loop initial declarations are only allowed in C99 mode
因为我的代码中出现
for(int times = 1; times <= lineNum; times++)
按照提示,改成如下即可:
int times = 1;
```````````
for(; times<= lineNum; times++)
即是:
将times定义在for外面
用Dev-C++出现error:
error: ‘for’ loop initial declarations are only allowed in C99 mode
因为我的代码中出现
for(int times = 1; times <= lineNum; times++)
按照提示,改成如下即可:
int times = 1;
```````````
for(; times<= lineNum; times++)
即是:
将times定义在for外面