用C语言实现: (1)用头插法(或尾插法)建立带头结点的单链表;

日期:2017-10-07 13:17:50 人气:1

用C语言实现: (1)用头插法(或尾插法)建立带头结点的单链表;

#include#includetypedef struct lista{ struct lista *next; int data;}list;void insert(list *h);void del(list *h);int main(){ int flag; list *head=(list *)malloc(sizeof(list)); head->next=NULL; while(1) { printf("/***
    A+
热门评论