}
list*cree()
{
list *p;
p =(list*)malloc(sizeof(list));
if(!p) {printf ("erreur d'allocation");
exit(-1);}
return(p);
}
/*fonction qui remplit la structure list*/
list *remp()
{list *p;int a,i;
p=cree();
printf("faite entrer votre mot");
scanf("%s",p->b);
printf("donnez la definition de ce mot");
scanf("%s",p->b);
printf("nombre de synonymes: ");
{scanf("%d",&a);}
p->n=a;
for(i=0;i<a;i++)
{
printf("donner le mot %d ",i+1);
scanf("%s",p->k[i]);
}
p->svt=NULL;
return(p);
}
if(s==1)
{
printf("Tapez votre mot AVEC UNE LETTRE MAJISCULE au debut \n");
scanf("%s",v);
p=rech(v,h);
if(p==NULL)printf("Le mot n'existe pas !! \n");
else {printf("le mot %s existe",v);}
}
if(s==2)
{
printf("Tapez votre mot AVEC UNE LETTRE MAJISCULE au debut");
scanf("%s",v);
p=rech(v,h);
if(p==NULL)
printf("Le mot n'existe pas !! ");
else
{printf("La definition est: \n");puts(p->c);}
}
if(s==3)
{
printf("Tapez votre mot AVEC UNE LETTRE MAJISCULE au debut");
scanf("%s",v);
p=rech(v,h);
if(p==NULL)printf(" \n Le mot n'existe pas !! ");
else
{printf("Les synonymes sont: \n");
for(i=0;i<p->n;i++)
puts(p->k[i]);
}
}
if(s==4)
{
ajout(h);
}
}
}
probleme avec l'erreur césse de fonctionner ...... SVP aidez moi