From 8c235882a7978851c7202212a3e3d85524667a9e Mon Sep 17 00:00:00 2001 From: bastien Date: Mon, 20 Apr 2026 11:50:57 +0000 Subject: [PATCH] Supprimer Exo-2/main.c --- Exo-2/main.c | 44 -------------------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 Exo-2/main.c diff --git a/Exo-2/main.c b/Exo-2/main.c deleted file mode 100644 index 9a2ca1b..0000000 --- a/Exo-2/main.c +++ /dev/null @@ -1,44 +0,0 @@ -#include -#include - -void ajouterContact(); -void afficherContacts(); - -int main() { - int choix = 0; - - do { - // Affichage du menu - printf("\n--- Gestionnaire de contacts ---\n"); - printf("1. Ajouter un contact\n"); - printf("2. Afficher tous les contacts\n"); - printf("3. Quitter\n"); - printf("Votre choix : "); - scanf("%d", &choix); - getchar(); // Pour absorber le retour à la ligne - - switch (choix) { - case 1: - ajouterContact(); - break; - case 2: - afficherContacts(); - break; - case 3: - printf("Au revoir!\n"); - break; - default: - printf("Choix invalide!\n"); - } - } while (choix != 3); - - return 0; -} - -void ajouterContact() { - // À compléter -} - -void afficherContacts() { - // À compléter -}