
数据结构
iorangelove
编程当成乐趣,解决问题当成目的
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
栈的应用数制转换
#include #include #define STACK_INIT_SIZE 100 #define STACK_ADD 10 #define i 2 typedef struct { int *base; int *top; int stacksize; }SqStack; //栈的初始化 int InitStack(SqStac原创 2014-05-06 11:23:23 · 476 阅读 · 0 评论 -
循环队列堆实现
#include #include #define MaxSize 100 typedef int ElemType; typedef struct { ElemType data[MaxSize]; int front; int rear; }CircSeqQueue; //顺序循环队列的初始化 void QueueInitial(CircSeqQueue *原创 2014-05-06 11:15:17 · 332 阅读 · 0 评论 -
线性表头插法
#include #include typedef struct student { long num; float score; struct student *next; } student; student *create_linklist() { long num; float score; student *head原创 2014-05-06 11:17:15 · 944 阅读 · 0 评论 -
循环队列-链表实现
#include #include typedef struct QNode { int data; struct QNode *next; }QNode,*QueuePtr; typedef struct { QueuePtr front; QueuePtr rear; }LinkQueue; //原创 2014-05-16 23:05:23 · 2981 阅读 · 0 评论 -
循环队列-顺序表
includeincludedefine MAXSIZE 100typedef struct { int *base; int front; int rear; }SqQueue;//初始化队列 int InitQueue(SqQueue *Q) { Q->base=(int *)malloc(MAXSIZE*sizeof(int)); if原创 2015-03-25 22:41:12 · 398 阅读 · 0 评论 -
栈-括号匹配
includeincludedefine OVERFLOW -1define OK 1define ERROR 0define STACK_INIT_SIZE 100define STACKINCREMENT 10includeinclude include include include define SIZE 100typedef struct{ int age; char原创 2015-03-25 22:42:25 · 286 阅读 · 0 评论