- 博客(2)
- 收藏
- 关注
原创 单链表(线性链表)操作
建立List结构#include <cstdio> #include <iostream> #include <malloc.h>using namespace std;typedef struct Node{ int data; struct Node *next; //next指针 int size; //单链表大小 }*List;尾插入法建立单链表
2015-12-01 12:11:55 462
原创 链表的头插入法建立和尾插入法建立
//这里写代码片尾插入 void Creat(LinkList &L,int n){ L = (LinkList)malloc(sizeof(LinkList)); Node *p,*q; p = L; for(int i=0;i
2015-11-30 21:10:52 410
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人