typedef struct Student
{
int data;
struct Student*next;
}Student_info;
上面的Student是标识符,
Student_info是变量类型,相当于是int char等变量类型。
上面的定义相当于
struct Student{
int data;
struct Student *next;
}
+typedef struct Stdent Student_info;
这样我们就可以用Student_info来定义结构体变量了。
例子:
Student_info *p;