Add structure of the binary tree used for huffman, along with stdio and string headers
This commit is contained in:
parent
2077d41541
commit
2aaf284d9b
1 changed files with 16 additions and 0 deletions
16
huffman.h
Normal file
16
huffman.h
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
#ifndef _GLOBAL_HUFFMAN_H
|
||||||
|
#define _GLOBAL_HUFFMAN_H 1
|
||||||
|
|
||||||
|
// On inclus nos dépendances que tous le programme utilisera
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
|
// Structure du noeud
|
||||||
|
typedef struct noeud_huffman {
|
||||||
|
char lettre;
|
||||||
|
int frequence;
|
||||||
|
struct noeud_huffman *gauche;
|
||||||
|
struct noeud_huffman *droite;
|
||||||
|
} *Noeud;
|
||||||
|
|
||||||
|
#endif // <huffman.h> inclus
|
Reference in a new issue