Yûki - Compress working

This commit is contained in:
name 2019-12-15 20:15:55 +01:00
parent e7305b7ab8
commit c8a0b3f359
No known key found for this signature in database
GPG key ID: 03E8F3CF3183323A
7 changed files with 104 additions and 140 deletions

View file

@ -1,11 +1,12 @@
#ifndef __MAIN_COMPRESS__
#define __MAIN_COMPRESS__
#include "arbre_de_codage/arbre_binaire.h"
#include <stdio.h>
#include "arbre_de_codage/arbre_binaire.h"
#include "gestion_des_fichiers/gestion_fichiers.h"
struct lexique{
char lettre;
char *code;
char code[256];
};
typedef struct lexique lex;
typedef struct lexique* plex;
@ -15,7 +16,7 @@ void frequence(arbre T[], FILE *file);
void tri_tab(arbre T[],int n);
void afficher_tab(arbre T[], int n);
void init_tab(arbre T[], int n);
void init_codage(plex Code[], int n);
void get_lexique(FILE *file, plex Code[], arbre huff);
void init_codage(plex Code[], int n);
#endif