阅读背景:

在链接列表的尾部插入节点

来源:互联网 
Node* Insert(Node *head,int data)

{

  Node *current=head;

   Node *new=(Node *)malloc(size0f(Node));

   new->data=data;

   while(current->next!=NULL)

{

current=current->next;

    }

    current->next=new;

    new->next=NULL;

    return head;

}
Node* Insert(Node *head,int data)

{

  Node *c



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: