#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>#include<stdlib.h>typedef struct LinkNode{int num;LinkNode* next;}Lk, * lk;//有头链表的初始化lk initLinkNode(...
有头链表 无头链表: #define _CRT_SECURE_NO_WARNINGS#include<stdio.h>#include<stdlib.h>typedef struct
链表概念: 链表使用说明: 画图示意: 静态链表#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>typedef struct Li
反转单向链表void ReverseList(Node* head) {//反转带头节点指针的单向链表Node* pre = NULL;Node* cur = head->next;