螺纹图纸表示:C语言问题

来源:百度文库 编辑:高校问答 时间:2024/04/29 13:06:09
下面是一个通讯簿程序的一部分 看不懂 请各位大侠解释一下 最好解释具体一点 完整的程序见 http://hi.baidu.com/mydeadmouse/blog/item/0c3bfbed1dc4024f79f05504.html
void Delete() /*定义一个删除的函数*/
{ printf("\n\n\tplease input the name:");
gets(name1); /*输入要删除人的姓名*/
p4=head;
if(strcmp(p4->name,name1)==0)
{ p4=p4->next; /*根据各种情况判断可能性*/
head=p4;
}
else
{ while(strcmp(p4->next->name,name1)!=0)
p4=p4->next;
p5=p4->next;
p4->next=p5->next;
free(p5);
}

指针你没学好把!~~~
自己研究一下,自己研究出来会进步很大的,老是听别人讲学不来的!~

估计是个结构体链表