链表一系列经典问题
1.删除指定结点
#include<stdio.h>//删除指定节点
#include<stdlib.h>
int key;
struct Node{
int a;
struct Node *next;
};
struct Node* Build(){
struct Node *view,*head,*rear,*p;//易错点1:各个指针要在前面加*,不能 struct Node *view,head,rear,p
view=(struct Node*)malloc(s
原创
2020-12-28 12:47:41 ·
163 阅读 ·
2 评论