|
|
|
@ -8,7 +8,7 @@
|
|
|
|
|
|
|
|
|
|
//Partie Consultant.
|
|
|
|
|
|
|
|
|
|
void MenuUser(VilleIUT* lvIUT[],int tlogi)
|
|
|
|
|
void menuUser(VilleIUT* lvIUT[],int tlogi)
|
|
|
|
|
{
|
|
|
|
|
int intUserEntry=0;
|
|
|
|
|
printf("#--------------------------------------------------------------------#\n");
|
|
|
|
@ -167,7 +167,7 @@ void modifPlaces(VilleIUT* tiut[],int tlogi){
|
|
|
|
|
printf("\n\nEntrez le département à modifier:");
|
|
|
|
|
char dep[31];
|
|
|
|
|
scanf("%*c%s",&dep);
|
|
|
|
|
if(!existeDep(tiut->ldept,dep)){
|
|
|
|
|
if(!existeDep(v->ldept,dep)){
|
|
|
|
|
fprintf(stderr,"\nDépartement non existant !\n");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
@ -228,7 +228,7 @@ void supprimerDep(VilleIUT* tiut[],int tlogi){
|
|
|
|
|
printf("\n\nEntrez le département à supprimer:");
|
|
|
|
|
char dep[31];
|
|
|
|
|
scanf("%*c%s",&dep);
|
|
|
|
|
if(!existeDep(tiut->ldept,dep)){
|
|
|
|
|
if(!existeDep(v->ldept,dep)){
|
|
|
|
|
fprintf(stderr,"\nDépartement non existant !\n");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
@ -268,7 +268,7 @@ void modifNomResponsable(VilleIUT* tiut[],int tlogi){
|
|
|
|
|
printf("\n\nEntrez le département à modifier:");
|
|
|
|
|
char dep[31];
|
|
|
|
|
scanf("%*c%s",&dep);
|
|
|
|
|
if(!existeDep(tiut->ldept,dep)){
|
|
|
|
|
if(!existeDep(v->ldept,dep)){
|
|
|
|
|
fprintf(stderr,"\nDépartement non existant !\n");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
@ -280,4 +280,4 @@ void modifNomResponsable(VilleIUT* tiut[],int tlogi){
|
|
|
|
|
strcpy(m->resp,nom);
|
|
|
|
|
printf("\n\nLe nom du responsable du département %s de l'IUT de %s a bien été changé pour %s.\n",dep,ville,nom);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|