diff --git a/TP6/list.c b/TP6/list.c index 1b81b2f..593bc9c 100644 --- a/TP6/list.c +++ b/TP6/list.c @@ -19,6 +19,7 @@ void insertinList(Liste* mylist, int el) { Cell* newCell=(Cell*) malloc(sizeof(Cell)); newCell->key=el; + newCell->nextC=*mylist; *mylist=newCell; } diff --git a/TP7/listechaines.c b/TP7/listechaines.c index 3bcbee6..e8d4a5e 100644 --- a/TP7/listechaines.c +++ b/TP7/listechaines.c @@ -3,7 +3,7 @@ #include #include -#include +#include "listechaines.h" //Affichage de la liste en ligne void afficher_liste(Liste l) {