摘要:
#include<stdio.h> #include<stdlib.h> struct Test { int data; struct Test * next; }; printfLink(struct Test * head) { while(head!=NULL) { printf("%d\n" 阅读全文
posted @ 2022-12-06 23:18
WellMandala
阅读(41)
评论(0)
推荐(0)
摘要:
删除链表节点可以分为三种:删除头节点,删除中间节点和删除尾节点 #include<stdio.h> #include<stdlib.h> struct Test { int data; struct Test * next; }; printfLink(struct Test * head) { w 阅读全文
posted @ 2022-12-06 22:44
WellMandala
阅读(41)
评论(0)
推荐(0)
摘要:
在链表的前方插入节点 #include<stdio.h> struct Test { int data; struct Test * next; }; printfLink(struct Test * head) { while(head!=NULL) { printf("%d\n",head->d 阅读全文
posted @ 2022-12-06 21:35
WellMandala
阅读(112)
评论(0)
推荐(0)