From 115fa65a1997e586694b5c63a175ffe843ca69b3 Mon Sep 17 00:00:00 2001 From: "yann.champeau" Date: Thu, 12 Jan 2023 14:27:37 +0100 Subject: [PATCH] =?UTF-8?q?R=C3=A9parage=20de=20fautes.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/partie1/saeP1.c | 1 - src/saeMain.c | 12 ++++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/partie1/saeP1.c b/src/partie1/saeP1.c index 78cec73..007bb3e 100644 --- a/src/partie1/saeP1.c +++ b/src/partie1/saeP1.c @@ -55,7 +55,6 @@ void menuUser(VilleIUT* lvIUT[],int tlogi) break; case 9: quit=1; - reset(); } } diff --git a/src/saeMain.c b/src/saeMain.c index e877d64..c2db4cf 100644 --- a/src/saeMain.c +++ b/src/saeMain.c @@ -11,11 +11,11 @@ int main(void) { system("clear"); VilleIUT* tiut[36529]; - int tlogi=loadIUT(tiut), quit=0; - menu(); - char user; - scanf("%c",&user); - while(!quit){ + int tlogi=loadIUT(tiut), quitter=0; + while(!quitter){ + menu(); + char user; + scanf("%c",&user); switch(user){ case 'C': reset(); @@ -35,7 +35,7 @@ int main(void) printf("Êtes-vous sûr de vouloir quitter ? (Y pour continuer)\n\n"); char confirmation; scanf("%*c%c",&confirmation); - if(confirmation=='Y') quit=1; + if(confirmation=='Y') quitter=1; system("clear"); } }