X-Git-Url: https://git.piment-noir.org/?p=TD_C.git;a=blobdiff_plain;f=TP_13%2Fexo1%2Flib%2Fio.c;h=7639410116edf56925481f8501b24fc0ff29c963;hp=989e746aa237cd90d18c0b3861427deefd5f1bf2;hb=889d586254feccc26f294af86ce7e698ea006dfb;hpb=475ee86d70921638c700bc0934441c7fe2c905d1 diff --git a/TP_13/exo1/lib/io.c b/TP_13/exo1/lib/io.c index 989e746..7639410 100644 --- a/TP_13/exo1/lib/io.c +++ b/TP_13/exo1/lib/io.c @@ -28,7 +28,9 @@ void display_choice_menu() { printf("2) Trier le tableau.\n"); printf("3) Afficher le tableau.\n"); printf("4) Compter le nombre d'occurence d'un entier dans le tableau.\n"); - printf("5) Quitter.\n"); + printf("5) Compter le nombre d'entiers pairs dans le tableau.\n"); + printf("6) Compter le nombre d'entiers impairs dans le tableau.\n"); + printf("7) Quitter.\n"); } int* do_concat(int array[], unsigned* size) { @@ -77,6 +79,7 @@ void do_sort(int array[], unsigned size) { criteria = ascending_and_odd; break; default: + /* sort ascending by default, unused code path */ criteria = ascending; break; }