소개글
허프만 부호화를 C로 구현한것
컴파일 실행환경
huffman.cpp
encoder.cpp
decoder.cpp
decoder.h
encoder.h
본문내용
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "encoder.h"
#include "decoder.h"
void main()
{
static unsigned char data[] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1, 1, 9, 9, 10, 0, 0, 0, 0, 0, 10, 10, 10, 10, 10, 10,
8, 8, 8, 9, 1, 1, 0, 0, 0, 0, 0, 0, 0, 10, 10, 10,
1, 1, 9, 9, 10, 0, 0, 0, 0, 0, 10, 10, 10,
8, 8, 8, 9, 1, 1, 0, 0, 0, 0, 0, 0, 0
} ;
HuffmanEnoder e;
unsigned char * bin, * cdata;
int size;
//////////////////
메인부분입니다.
압축파일 내 파일목록
decoder.cpp
decoder.h
encoder.cpp
encoder.h
huffman.cpp
참고 자료
없음