From 91209abd0000210aa9b5c2363aa8bd410f04b947 Mon Sep 17 00:00:00 2001 From: "yann.champeau" Date: Fri, 13 Jan 2023 20:24:21 +0100 Subject: [PATCH] Ajustements. --- src/partie1/saeP1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/partie1/saeP1.c b/src/partie1/saeP1.c index f0cb074..d5d86f2 100644 --- a/src/partie1/saeP1.c +++ b/src/partie1/saeP1.c @@ -22,7 +22,7 @@ void menuUser(VilleIUT* lvIUT[],int tlogi, int CandidOpen, candidat* tcandidat[] printf("2 : Afficher tout les départements de chaques IUT\n"); printf("3 : Afficher le nombre de place en première année d'un IUT précis avec un département précis\n"); printf("4 : Rechercher les IUTs possèdant un département précis.\n"); - printf("5 : S'enregistrer en tant que candidat."); + printf("5 : S'enregistrer en tant que candidat.\n"); if(CandidOpen) { printf("6 : Candidater\n"); @@ -358,7 +358,7 @@ void modifNomResponsable(VilleIUT* tiut[],int tlogi){ return; } MaillonDep* m=v->ldept; - while(m->departement!=dep) m=m->suivant; + while(m->departement!=dep && m->suivant!=NULL) m=m->suivant; printf("\n\nLe responsable du département %s de l'IUT de la ville de %s est actuellement %s. Quel est le nom du nouveau responsable ?\n\n",m->departement,v->Ville,m->resp); scanf("%*c"); fgets(m->resp, 51, stdin);