数据结构
bing_luo_18
这个作者很懒,什么都没留下…
展开
-
树的基本算法
#include "stdio.h"#include "malloc.h"#define MAXSIZE 100 //初始分配单元为100//-------------------stack.h的定义----------------------------------------//树的结点定义typedef int DataType_tree; //树结点的数据域类型原创 2012-04-07 14:16:58 · 795 阅读 · 0 评论 -
打印杨辉三角
#include "stdio.h"#define maxsize 100/*--------循环队列及操作如下------------ */typedef int DataType;typedef struct node{ DataType data[maxsize]; /*循环队列的存储空间 */ int front,rear;原创 2012-04-07 14:18:27 · 642 阅读 · 0 评论 -
中缀表达式转换为后缀表达式
优先级表如下:操作符 # ( *,/ +,- )进栈后 0 1 5 3 6进栈前 0 6 4 2 1#include "stdio.h"#include "malloc.h"#define MAXSIZE 100 //初始分配原创 2012-04-07 14:19:21 · 622 阅读 · 0 评论