#include #include #include typedef struct noeud { int valeur; struct noeud *a; struct noeud *b; struct noeud *c; struct noeud *d; struct noeud *e; struct noeud *f; struct noeud *g; struct noeud *h; struct noeud *i; struct noeud *j; struct noeud *k; struct noeud *l; struct noeud *m; struct noeud *n; struct noeud *o; struct noeud *p; struct noeud *q; struct noeud *r; struct noeud *s; struct noeud *t; struct noeud *u; struct noeud *v; struct noeud *w; struct noeud *x; struct noeud *y; struct noeud *z; } noeud ; void insertion1(noeud ** arbre, int v){ *arbre=(noeud*) malloc(sizeof(noeud)); (*arbre)->valeur=v; (*arbre)->a=NULL; (*arbre)->b=NULL; (*arbre)->c=NULL; (*arbre)->d=NULL; (*arbre)->e=NULL; (*arbre)->f=NULL; (*arbre)->g=NULL; (*arbre)->h=NULL; (*arbre)->i=NULL; (*arbre)->j=NULL; (*arbre)->k=NULL; (*arbre)->l=NULL; (*arbre)->m=NULL; (*arbre)->n=NULL; (*arbre)->o=NULL; (*arbre)->p=NULL; (*arbre)->q=NULL; (*arbre)->r=NULL; (*arbre)->s=NULL; (*arbre)->t=NULL; (*arbre)->u=NULL; (*arbre)->v=NULL; (*arbre)->w=NULL; (*arbre)->x=NULL; (*arbre)->y=NULL; (*arbre)->z=NULL; } void insertion2(noeud ** arbre, int v){ { if (v==97) insertion1(&(*arbre)->a,v); else if (v==98) insertion1(&(*arbre)->b,v); else if (v==99) insertion1(&(*arbre)->c,v); else if (v==99) insertion1(&(*arbre)->c,v); else if (v==100) insertion1(&(*arbre)->d,v); else if (v==101) insertion1(&(*arbre)->e,v); else if (v==102) insertion1(&(*arbre)->f,v); else if (v==103) insertion1(&(*arbre)->g,v); else if (v==104) insertion1(&(*arbre)->h,v); else if (v==105) insertion1(&(*arbre)->i,v); else if (v==106) insertion1(&(*arbre)->j,v); else if (v==107) insertion1(&(*arbre)->k,v); else if (v==108) insertion1(&(*arbre)->l,v); else if (v==109) insertion1(&(*arbre)->m,v); else if (v==110) insertion1(&(*arbre)->n,v); else if (v==111) insertion1(&(*arbre)->o,v); else if (v==112) insertion1(&(*arbre)->p,v); else if (v==113) insertion1(&(*arbre)->q,v); else if (v==114) insertion1(&(*arbre)->r,v); else if (v==115) insertion1(&(*arbre)->s,v); else if (v==116) insertion1(&(*arbre)->t,v); else if (v==117) insertion1(&(*arbre)->u,v); else if (v==118) insertion1(&(*arbre)->v,v); else if (v==119) insertion1(&(*arbre)->w,v); else if (v==120) insertion1(&(*arbre)->x,v); else if (v==121) insertion1(&(*arbre)->y,v); else if (v==122) insertion1(&(*arbre)->z,v); } } void remplissage(noeud ** arbre, FILE *fichier){ int i; char ch[20]; fscanf(fichier,"%s",&ch); int n=strlen(ch); insertion1(&(*arbre),(int)ch[0]); for (i=1;i