【资料图】
1、typedef用于定义一种新类型 例如 定义了如下的结构 typedef struct student { int age; int score; }STUDENT; 那么则有 STUDENT stu1; 就相当于struct student stu1; 上面的结构也可以直接定义为: typedef struct { int age; int score; }STUDENT; 然后将STUDENT作为新类型使用。
2、比如STUDENT stu1;。
以上就是【typedef struct用法,typedef struct】相关内容。
关键词:
Copyright 2015-2022 西南城建网 版权所有 备案号:皖ICP备2022009963号-8 联系邮箱:39 60 29 14 2@qq.com