![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
破风少年
这个作者很懒,什么都没留下…
展开
-
数据结构中栈的相关操作
#include<stdio.h>#include<stdlib.h>#define MAXNUM 15#define INIT_SIZE 50#define INCREMENT 20#define OK 2#define ERROR 0#define OVERFLOW -1#define TRUE 1#define FALSE 0...原创 2017-11-01 11:33:54 · 337 阅读 · 0 评论 -
数据结构中队列的相关操作
#include<stdio.h>#include<stdlib.h>#define MAXQSIZE 100#define OK 2#define ERROR 0#define OVERFLOW -1#define TRUE 1#define FALSE 0typedef int QElemType;typedef int Statu...原创 2017-11-01 11:37:54 · 289 阅读 · 0 评论 -
C语言实现BF算法
#include <stdio.h> //头文件#include <string.h> //字符串头文件int BF(char s[],char t[],int pos){ //BF算法 s是原字符串,t是匹配字符串 intm,n; inti=pos,j=0; //从0...原创 2017-11-01 11:45:20 · 12537 阅读 · 3 评论 -
下三角矩阵的压缩存储
输出原来的矩阵;输出压缩后的一维数组;根据输入的行号列号,从压缩矩阵中计算出元素的值#include<stdio.h>int main(){ inta[5][5]={ //定义原二维数组 1,0, 0, 0, 0, 5,9, 0, 0, 0, 4,6,...原创 2017-11-01 11:50:12 · 12298 阅读 · 1 评论 -
数据结构中二叉树的相关操作
#include<stdio.h>#include<stdlib.h>#define DataType chartypedef struct BiTNode{ //二叉链表的结构类型DataType data; //数据域struct BiTNode *lchild,*rchild; //二叉链表的指针域}BiTNo...原创 2017-11-01 11:53:40 · 334 阅读 · 0 评论