摘要: 具有头结点的链表,就是有一个虚构的结点,链表的中第一个结点其实是第二个结点。#include<stdlib.h>structllist{intnum;structllist*next;};typedefstructllistnode;typedefnode*llink;//输出结点值voidprintllist(llinkhead){llinkptr;ptr=head->next;while(ptr!=NULL){printf("%d",ptr->num);ptr=ptr->next;}printf("\n");}//找结点 阅读全文
posted @ 2011-06-22 19:28 草珊瑚 阅读(276) 评论(0) 推荐(0)