链表
链表的创建
head为头节点,pend为尾节点,pnew为当前插入的节点
#include<bits/stdc++.h>
using namespace std;
struct node
{
int num;
struct node *next;
};
int main()
{
node *head,*pend,*pnew;
// 不带头节点的单链表
// int n=10;
// while(n--)
// {
// pnew = (struct node*)mal...
原创
2020-09-11 11:37:48 ·
181 阅读 ·
0 评论