Bonjour àtous
jai un probleme avec cette fonction qui doit supprimer le 1er element de la table de hacahge.
elle nefonctionne pas: affiche des erreurs :
1--[Warning] passing arg 2 of `verifCondition2seq' from incompatible pointer type if( verifCondition2seq(TableHash[i]->mot, seq->mot )==1)
2- invalid initializer Liste tmp = TableHash;
3- invalid type argument of `->' TableHash = tmp->suivant;
4-incompatible type for argument 1 of `free' free(tmp);
je copte sur vous.
merci
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 void elaguer (Liste *seq, Liste **TableHash ) { Liste *tmp; while( seq != NULL && verif_condition_2seq(TableHash->mot, seq->mot ){ Liste tmp = TableHash; TableHash = tmp->suivant; free(tmp); printf (" bon"); }
Partager