数据结构
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 · 449 阅读 · 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 · 715 阅读 · 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 · 1811 阅读 · 0 评论