19 lines
458 B
C
19 lines
458 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;
|
|
|
|
// Permet de créer un nouveau noeud
|
|
Noeud nouveauNoeud(char lettre, int frequence, Noeud A, Noeud B);
|
|
|
|
#endif // <huffman.h> inclus
|