diff --git a/projet.c b/projet.c index e69de29..78f348d 100644 --- a/projet.c +++ b/projet.c @@ -0,0 +1,35 @@ +#include +#include + +typedef struct cell* ptcellule; +typedef struct cell* ptarbre +typedef struct cell {int lettre; ptarbre arbre; ptcellule suivant;}; + +void init_dico() +{ + ptarbre arbre; + arbre=NULL; +} + +void ajout_dico(ptarbre arbre, int lettre) +{ + arbre=malloc(sizeof(cell)); + arbre->lettre=lettre; + arbre->arbre=NULL; + arbre->suivant=NULL; +} + + + +int main() +{ + init_dico(); + + // Ouvrir fichier + + + while c!= EOF // lecture de tout le fichier + + + return 0; +} -- libgit2 0.21.2