在codeblocks的settings中选择 compiler and debugger,选择compile setting 在其中有other options,在里面写上-std=c99 这样就可以使用c99标准来编译程序了 ...
分类:
其他好文 时间:
2017-11-20 17:48:03
阅读次数:
125
c原文件#include<stdio.h>
#include<stdlib.h>
#defineMAX(A,B)A>B?A:B//返回A,B中的最大值
#defineLOOP(FROM,TO,CONTENT)for(intindex=FROM;index<TO;index++){CONTENT}
intmain(void)
{
printf("Maxnumis%d\n",MAX(2,5));
printf("Maxnumis%f\n..
分类:
其他好文 时间:
2016-10-20 16:05:14
阅读次数:
253
搜集很多关于背景虚化的帖子, @IcyFox 的见解
: 模糊实现方案探究
1. RenderScript
谈到高斯模糊,第一个想到的就是RenderScript。RenderScript是由Android3.0引入,用来在Android上编写高性能代码的一种语言(使用C99标准)。 引用官方文档的描述:
RenderScript runtime will paral...
分类:
移动开发 时间:
2015-02-26 14:58:01
阅读次数:
2882
在使用gcc命令行编译的时候可以使用gcc xxx.c -o xxx.exe -std=c99来使用c99标准编译但是在codeblocks中默认是不使用c99标准编译的,如何加参数呢?Settings>Compiler>Other options>写上如下参数-std=c99如果想多加几个参数,分...
分类:
其他好文 时间:
2014-10-02 02:51:22
阅读次数:
316