求助一下大佬们,我使用的链表,但是我这始终就是显示堆栈损坏,地址访问冲突的什么的异常,并且在动态链表的方式是按照网上教学编写的 有一处有警告信息
create函数第一行
sizeof(struct student)
不是sizeof(struct student*)
struct student newhead*=(struct student *)malloc(sizeof(struct student *));
改为,删除*号
struct student newhead*=(struct student *)malloc(sizeof(struct student));