typedef int ElemType;
typedef struct{}
typedef 类型定义标识符,作用是 为一个数据类型或者结构重新定义一个名称;
此处意思是: 将 整型 int 关键字 重新命名为 Elemtype,int 和 Elemtype 代表的类型是一样的,声明和定义的变量是等价的,都是整型
typedef struct{}是定义结构体
typedef int ElemType是定义一个整型的别名,会用来定义数据结构中的数值类型。
typedef struct 用来定义一个数据结构类型,比如
typedef struct _Student{
ElemType data;
_Student next;
}Student;