16-数据结构
数据结构学习部分
Y_principal
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
34-数据结构-循环队列(1.0版本)-加了详细注释
#include <stdio.h> #include <malloc.h> #include <stdlib.h> //【1】队列数据结构 typedef struct queue { int* pbase; // 注意是int * int rear=0; int front=0; }QUEUE; void init(QUEUE...原创 2019-09-04 17:38:24 · 233 阅读 · 0 评论 -
33-数据结构--栈(2)
#include<stdio.h> #include<malloc.h> #include<stdlib.h> //【1】定义数据类型和两个指针 typedef struct node { int data; struct node* pnest; }NODE,*PNODE; typedef struct stack { PNODE p...原创 2019-09-03 21:35:52 · 168 阅读 · 0 评论 -
033-数据结构-栈(1)
【1】 #include<stdio.h> #include<malloc.h> #include<stdlib.h> //【1】节点数据类型 typedef struct node { int data; struct node* pnext; }NODE,*PNODE; //【2】栈:两个参数 typedef struct stack ...原创 2019-09-03 16:35:05 · 173 阅读 · 0 评论 -
31-数据结构-创建链表(3)
#include<stdio.h> #include<malloc.h> #include<stdlib.h> //【1】节点数据类型 typedef struct node { int data; struct node* pnext; }NODE,*PNODE; PNODE creat_list(); void travel_list(P...原创 2019-09-03 10:35:32 · 189 阅读 · 0 评论 -
30-数据结构-创建链表(2)
#include<stdio.h> #include<malloc.h> #include<stdlib.h> #include<stdlib.h> //---【1】创建结点数据类型 typedef struct node { int data; struct node* pnext; } NODE, * PNODE; ...原创 2019-09-03 09:31:44 · 185 阅读 · 0 评论 -
29-数据结构-链表创建和遍历(1)
学习笔记啦,笔试用的,希望能敲出来 #include<stdio.h> #include<malloc.h> #include<stdlib.h> //--【1】----先把每个结点的数据类型写出来-------结构体------------ typedefstructNode { intdata;//数据域 structNo...原创 2019-09-02 18:09:10 · 220 阅读 · 0 评论 -
032-创建链表和遍历链表(4)
#include<stdio.h> #include<malloc.h> #include<stdlib.h> //【1】数据类型 typedef struct node { int data; struct node* pnext;// struct node * 是数据类型 ,所以p->pnext 就是指的p指向的结构体里的指...原创 2019-09-03 11:19:14 · 251 阅读 · 0 评论
分享