
数据结构
Genius_yyyyyyyyeah
...
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
数据结构之链栈的实现
链栈的进栈出栈操作 #include <stdio.h> #include <malloc.h> typedef struct LNode { int data; struct LNode *next; }LNode; LNode* initStack(LNode *&stack){ stack = (LNode*)malloc(sizeo...原创 2018-08-22 17:25:50 · 530 阅读 · 0 评论 -
数据结构之顺序栈的实现与符号匹配和进制转换
#include <stdio.h> #include <stdlib.h> #define maxSize 100 //顺序栈 固定分配 typedef struct{ int data[maxSize]; int top; }SqStack; //初始化一个链表 void initStack(SqStack &stack) { stac...原创 2018-08-22 17:29:09 · 812 阅读 · 0 评论 -
数据结构之链表的实现以及各种应用
#include <stdio.h> #include <malloc.h> #include <stdlib.h> //the max and the min. typedef struct LNode{ int data; struct LNode *next; }LNode; //初始化一个链表 LNode* in...原创 2018-08-22 17:31:18 · 1910 阅读 · 0 评论