17 lines
354 B
C
17 lines
354 B
C
|
#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
|