15 lines
310 B
C++
15 lines
310 B
C++
#include "common.h"
|
|
#include "huffman.h"
|
|
|
|
/*int main() {
|
|
ifstream enc("A.out");
|
|
stringstream ss;
|
|
ss << enc.rdbuf();
|
|
string s = ss.str();
|
|
vector<bool> v;
|
|
for (auto& c : s) {
|
|
//v.push_back(c == '1');
|
|
for (int i = 0; i < 8; ++i) v.push_back(1 & (c >> i));
|
|
}
|
|
cout << huffman::decode(v);
|
|
}*/ |