- 博客(2)
- 收藏
- 关注
原创 链表哈夫曼树--编码--解码
哈夫曼树的编码解码,输入是一个txt文件吗,给出文件的路径;里面包含的结构体声明如下:#define NOTFIND -1#define LEFT 0#define RIGHT 1struct h_code{ //哈夫曼编码的结构体 char data; vector<string>char_code; //存放字符的哈夫曼编码的};struct node{ int count;
2021-10-26 20:29:01 325 1
原创 数据结构创建邻接表图--从txt文件读取顶点信息
一、主函数#include "graph.h"int main(){ Graph().show_graph();}//创建邻接表的头文件#ifndef UNTITLED_GRAPH_H#define UNTITLED_GRAPH_H#include <iostream>#include "vector"#include "readtxt.h"#define MAXSIZE 10using namespace std;typedef struct
2021-09-30 09:42:52 1608
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人