数据结构
青菜菜菜
这个作者很懒,什么都没留下…
展开
-
链表的头插入法建立和尾插入法建立
//这里写代码片尾插入 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 阅读 · 0 评论 -
单链表(线性链表)操作
建立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 阅读 · 0 评论