- 博客(1)
- 收藏
- 关注
转载 结构体定义 typedef struct 用法详解和用法小结
typedef是类型定义的意思。typedef struct 是为了使用这个结构体方便。 具体区别在于: 若struct node {}这样来定义结构体的话。在申请node 的变量时,需要这样写,struct node n; 若用typedef,可以这样写,typedef struct node{}NODE; 。在申请变量时就可以这样写,NODE n; 区别就在于使用时,是否可以省去str
2014-04-05 23:16:19 417
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人