Version Finale (Sans erreur de traitement)

This commit is contained in:
name 2019-12-16 01:16:02 +01:00
parent c8a0b3f359
commit 81a2a61221
No known key found for this signature in database
GPG key ID: 03E8F3CF3183323A
11 changed files with 445 additions and 236 deletions

View file

@ -1,16 +1,17 @@
#ifndef __ARBRE_BINAIRE__
#define __ARBRE_BINAIRE__
typedef char Elt;
typedef int bool;
struct znoeud {
Elt elt ;
char elt ;
int poids;
struct znoeud *fils_gauche;
struct znoeud *fils_droit;
};
typedef struct znoeud noeud ;
typedef struct znoeud * arbre;
typedef char Elt;
arbre creer_arbre_vide(void);
arbre creer_arbre_huffman(Elt e, int p, arbre fg, arbre fd);
@ -22,5 +23,6 @@ bool est_arbre_vide(arbre a);
arbre creer_feuille(Elt e, int p) ;
bool est_feuille(arbre a) ;
void arbre_rechercher(arbre a, Elt c, char s[], int s_len, int found[]);
void serialisation(arbre a,FILE *file);
void serialisation(arbre a,FILE*file);
#endif