error: 'for' loop initial declaration used outside C99 mode的解决方法
for(int i = 0;i<10;i++)这样写循环时可能会出现如题编译错误,解决方法有两种,如下:
1 将文件后缀名由".c"改为".cpp"
2 int i;
for(i=0;i<10;i++)
这是用C-free编译出来的有问题,感觉很郁闷,因此百度一些,也只怪自己平时练得少;在这写下来希望能有所帮助。
- 上一篇 »You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '?,?,?,?)'
- 下一篇 »解决;R语言使用sqldf库是报错\"Failed to connect to database: Error: Access denied for user \'..\'@\'localhost\' ,using password: NO Error in !dbPreExists : invalid argument type\" - 小明在线