2015年12月27日

struct和typedef struct(转)

摘要: 1 。首先://注意在C和C++里不同 在C中定义一个结构体类型要用typedef: typedef struct Student { int a; }Stu; 于是在声明变量的时候就可:Stu stu1;(如果没有typedef就必须用struct Studen... 阅读全文
posted @ 2015-12-27 01:01 _阿赞 阅读(234) 评论(0) 推荐(0) 编辑