- 博客(1)
- 收藏
- 关注
原创 typedef struct和struct区别及用法
typedef为类型定义,typedef struct是为了使用结构体方法 若struct list{}这样定义结构体,在申请list变量时,需要这样写,struct list n; 若用typedef,则可以typedef struct list{}LIST;,在申请变量时就可以这样写 LIST n;可以省去struct这个关键字。 1.在c中定义结构体类型要用typedef; ty
2016-04-19 21:42:12 442 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人