在codeblocks的settings中选择
compiler and debugger,选择compile setting
在其中有other options,在里面写上-std=c99
这样就可以使用c99标准来编译程序了
给codeblocks的c编译选项添加c99标准
原文:http://www.cnblogs.com/TQCAI/p/7867087.html