登录 注册
无
请教一下,这段代码是什么意思?
typedef struct student{ int num; struct student *pnext; }stu, *pstu;
谢谢大家!
typedef的意思是说把A的别名设置为B
所以stu是struct student的别名
*pstu是struct student指针的别名
struct student 等价于 stu
struct student * 等价于 pstu
手工点赞,哈哈!