自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(3)
  • 收藏
  • 关注

原创 霍夫曼树的构建及霍夫曼编码

#include <iostream> #include <cstdlib> #include<stack> #include<stdio.h> #include<string.h> using namespace std; typedef struct { int weight; int parent, leftChild, rightChild; } HTNode,*Huffmantree; const int n=4;//叶

2020-11-30 21:43:21 339

原创 二叉树的建立 前序中序后序递归遍历 非递归遍历 C++

#include<iostream> #include<stdio.h> #include <iomanip> #include<stack> using std::setw; using namespace std; typedef struct node{ struct node * lchild; struct node * rchild; char data; }BiTreeNode,*BiTree; void CreateBiTree(

2020-11-30 18:57:27 144

原创 中缀到后缀的链式实现 C++

#include<stdio.h> #include<stdlib.h> typedef struct SNode*Stack; struct SNode{ char Data; struct SNode*Next; }; Stack CreateStack() //创建新堆栈节点 { Stack S; S=(Stack)malloc(sizeof(struct SNode)); S->Next=NULL; return S; } void Pus

2020-11-30 18:51:24 75

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除