转载请注明出处,否则将追究法律责任http://blog.csdn.net/xingjiarong/article/details/47080303

CodeBlocks是一个写C/C++的比較好的编辑器,可是在C语言中。C99之前的标准是不同意这样定义变量的:

for(int i=0;i<n;i++)

变量i必须定义在for循环的外边,这样就非常不方便,为了让CodeBlocks支持C99。我们仅仅须要简单的几步设置。

Setting->Compiler
怎样让CodeBlocks支持C99

Global compiler settings->Other options
在以下的文本框中输入-std=c99
怎样让CodeBlocks支持C99

如今你的CodeBlocks就能够支持C99了。

相关文章:

  • 2022-12-23
  • 2021-06-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-12
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-18
  • 2021-12-26
  • 2022-12-23
  • 2021-11-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案