
数据结构
文章平均质量分 75
老衲法号小杰
本人辽宁工程技术大学软件学院软件工程11级学生,奋斗拼搏ing!!
展开
-
c语言实现数据结构顺序表源代码
#include#include#include"stdlib.h"#define list_init_size 100#define listincrement 10#define ok 1#define error 0#define overflow -1typedef int elemtype;typedef原创 2012-11-18 14:39:53 · 1402 阅读 · 0 评论 -
数据结构(c语言版)链表的实现以及合并
/* Note:Your choice is C IDE */#include "stdio.h"#include"malloc.h"#include"stdlib.h"//包含exit()函数的头文件,以及system("pause")#define OK 1#define error 0#define OVERFLOW -1typedef int Status;typedef原创 2012-11-18 14:50:30 · 1266 阅读 · 0 评论 -
数据结构邻接表的建立以及两种遍历
静下心,去思考,思路便会清晰,程序基本框架便会浮现在脑海中#include "stdio.h"#include "stdlib.h"#define MAX_VEX_NUM 20#define OK 1#define ERROR 0typedef int Status;int visited[20];第一部分 存储结构typedef struct ArcNode {原创 2012-12-16 20:21:59 · 790 阅读 · 0 评论 -
数据结构图的数组表示法以及深度,广度遍历
#include"stdio.h"#include"stdlib.h"#define MAX_VERTEX_NUM 10#define OK 1#define ERROR 0#define OVERFLOW -1#define maxsize 100typedef int QElemType;typedef int VRType;typedef int InfoType;typ原创 2012-12-15 22:06:06 · 1785 阅读 · 0 评论 -
数据结构二叉树的建立以及递归遍历
/* Note:Your choice is C IDE */#include "stdio.h"#include "stdlib.h"#define OK 1#define ERROR 0#define OVERFLOW -1typedef char TElemType;typedef int Status;/*************struct***************/原创 2012-11-18 15:14:13 · 985 阅读 · 4 评论 -
数据结构循环队列以及打印杨辉三角
#include "stdio.h"#include"malloc.h"#include"stdlib.h"#define OK 1#define ERROR 0#define OVERFLOW -1#define maxsize 100typedef int QElemType;typedef int Status;/******************struct******原创 2012-11-18 15:08:18 · 1346 阅读 · 1 评论 -
数据结构(C语言版)链队列的基本操作
#include"stdio.h"#include"malloc.h"#include"stdlib.h"#define OK 1#define ERROR 0#define OVERFLOW -1typedef int QElemType;typedef int Status;/***************存储结构**************/type原创 2012-11-18 15:03:37 · 1117 阅读 · 0 评论 -
数据结构(C语言版)栈的实现进制的转换
/* Note:Your choice is C IDE */#include "stdio.h"#include#define ok 1#define error 0#define overflow#define stack_init_size 50#define stackincrement 5typedef int status;typedef int selemtype;原创 2012-11-18 14:55:18 · 1230 阅读 · 2 评论 -
数据结构栈应用括号匹配
#include#include#include"stdlib.h"#define stack_init_size 100#define stackincrement 10#define ok 1#define error 0#define overflow -1typedef int s原创 2012-11-18 14:57:33 · 632 阅读 · 0 评论 -
哈夫曼编码
#include "stdio.h"#include "stdlib.h"#define N 10int A[2*N];//标志数组,用于Select函数typedef struct { char value; int weight; int parent; int lchild; int rchild;}HTNode;//HuffManTree结点typedef struc原创 2013-01-17 23:02:08 · 868 阅读 · 0 评论