您当前的位置: 首页 > 

是我out了,c11标准出炉鸟

发布时间:2014-06-02 17:15:33 ,浏览量:0

 gcc -std=c11 -Wall -O3 -g0 -s -o x.c x

或者

 clang -std=c11 -Wall -O3 -g0 -s -o x.c x

来吧!

我是有多无聊啊快哭了

测试代码:

#include "comm.h"

#define MAX_NOTE_LEN 256
typedef struct person {
	char *name;
	int age;
	struct {
		short power;
		short magic;
	};
	char note[MAX_NOTE_LEN];
} person_t,*pperson_t;

int main(void)
{
	person_t pn;
	memset(&pn,0,sizeof(pn));
	printf("%d %hd %hd %s\n",pn.age,pn.power,pn.magic,pn.note);

	return 0;
}
关注
打赏
1688896170
查看更多评论

暂无认证

  • 0浏览

    0关注

    107766博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文
立即登录/注册

微信扫码登录

0.3252s