关于struct和typedef
摘要:
c/c++中有定义数据结构语句 struct student //定义数据结构体 { int a; //..... } struct student a1; //初始化变量 可以看到,定义结构体后每次进行初始化时都需要带上"struct",较为冗余 解决方法是重定义类型typedef //接上面代码 阅读全文
posted @ 2022-10-28 22:50 Toriyung 阅读(16) 评论(0) 推荐(0) 编辑