#include<stdio.h>
#include<stdlib.h>
struct list
{
int data;
struct list* next;
};
typedef struct list node;
typedef node* link;
//删除节点
link delete_node(link ptr, link tmp)
{
if (tmp == NULL)
{
return ptr->next;
}
else
{
if (tmp->next->next == NULL)
{
tmp->next = NULL;
}
else
{
tmp->next = tmp->next
【C语言】连接两个链表
最新推荐文章于 2021-11-20 12:02:51 发布