X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=TP_9%2Fexo2%2Fexo2.c;fp=TP_9%2Fexo2%2Fexo2.c;h=b7dae12490515e2f8b2e68c3522fc71a623d5325;hb=8f2b28438cb012169904a7fa1643977da5e40409;hp=ff5912bcb3e685ab74f1206f6f182458dcff6ad7;hpb=0d650b413a907f0fd4e78ee1500c196e9fd41d9f;p=TD_C.git diff --git a/TP_9/exo2/exo2.c b/TP_9/exo2/exo2.c index ff5912b..b7dae12 100644 --- a/TP_9/exo2/exo2.c +++ b/TP_9/exo2/exo2.c @@ -22,11 +22,11 @@ int main() { printf("Valeur a index %d: %d\n", 0, list_get(head, 0)); printf("Valeur a index %d: %d\n", 1, list_get(head, 1)); printf("Valeur a index %d: %d\n", 2, list_get(head, 2)); - head = list_insert(head, 2, 7); + //head = list_insert(head, 2, 7); printf("Valeur a index %d: %d\n", 1, list_get(head, 1)); printf("Valeur a index %d: %d\n", 2, list_get(head, 2)); printf("Valeur a index %d: %d\n", 3, list_get(head, 3)); - //head = list_delete(head, 2); + head = list_delete(head, 2); printf("Valeur a index %d: %d\n", 2, list_get(head, 2)); printf("Valeur a index %d: %d\n", 3, list_get(head, 3)); printf("Valeur a index %d: %d\n", 4, list_get(head, 4));