typedef struct student
{
int data;
typedef struct student *next;
}student;
struct student
{
int name;
int age;
};
第二个是定义了一个结构体student 结构体内有name和age
第一个是定义结构体struct student 为student,(实际上就是吧struct student换了一种叫法,新的叫法为student),这和 typedef int ElemType;是一样的