From 984fe2225ff82ecdcab41c0d4edfd1a79b31b35a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20LAVERGNE?= Date: Tue, 17 Oct 2023 21:58:35 +0200 Subject: [PATCH] Ajout de la boucle While pour les choix --- src/main.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/main.c b/src/main.c index 4b80313..325913b 100644 --- a/src/main.c +++ b/src/main.c @@ -28,6 +28,27 @@ void global(void) choice = displayMenu(); //TODO > Voir si on a le droit au switch/case + while(choice != 4) + { + if(choice == 1) + { + //TODO > Connexion + } + else if(choice == 2) + { + //TODO > Inscription + } + else if(choice == 3) + { + //TODO > Faire opposition + } + else + { + printf("Erreur, veuillez entrer un choix valide.\n"); + } + + choice = displayMenu(); + } } int main(void)