- 博客(2)
- 资源 (5)
- 收藏
- 关注
转载 linux 之assert学习
assert是头文件assert.h中的一个宏定义,执行到assert(test()),如果test()返回值为真,则继续往下执行,如果为假,则报错退出程序; 如果在包含assert.h之前定义一个NDEBUG宏(表示No Debug),就可以禁用assert.h中的assert宏定义
2013-02-22 10:20:42 355
转载 struct 定义
struct{ int x; int y; }test1; struct test{ int x; int y; }test1; typedef struct test{ int x; int y }text1,text2; 第一个:只定义了一个test1的结构体变量,以后还想定义这种结构体的话,必须重写整个结构体。 第二个:以后想定义结构
2013-02-04 14:48:15 652
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人