typedef函数的使用

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*
posted @ 2021-10-09 11:13  不会笑的孩子  阅读(26)  评论(0编辑  收藏  举报