1、head=malloc(sizeof(Node));//头结点这个返回的是 void *, 你要的是 linklist, 所以要强制类型转换一下head = (linklist)malloc(sizeof(Node));2、求链表的长度函数,那个循环里面 p 应该小写呀。