typedef int INT; // 相当于给int起了一个别名 INT
typedef struct Student
{
int sid;
char name[100];
char sex;
} ST; //ST st 就相当于 struct Student st,给struct Student 起了别名ST,这样简洁了代码
typedef struct Student
{
int sid;
char name[100];
char sex;
} * ST; //ST就相当于struct Student *
typedef使用
最新推荐文章于 2021-05-25 02:44:47 发布