头插法建立时p->next=head->next 再写head->next=p 写的时候顺序可以反一下吗
head->next=p;p->next=head->next,这不就等于p->next=p吗,无限死循环