哈夫曼编码#include <iostream>using namespace std;typedef struct Node{ int data; int leftposition; int rightposition;}Node;void Heap_Character(Node *data,int num,int start) //保持小根堆的性质函数{ int left=start*2; int right=start*2+1; int smallest=start; if(left<=num&&data[le... Read More