Jade VAN BRABANDT 3 years ago
commit a6733323c7

@ -111,6 +111,7 @@ void tabcpy(int tabS[], int tabD[], int tlogi){
int existeDep(MaillonDep* liste, char* dep){ int existeDep(MaillonDep* liste, char* dep){
MaillonDep* m=liste; MaillonDep* m=liste;
while(m->suivant!=NULL){ while(m->suivant!=NULL){
printf("%s, %s\n",m->departement,dep);
if(!strcmp(m->departement,dep)){ if(!strcmp(m->departement,dep)){
return 1; return 1;
} }

@ -350,7 +350,7 @@ void modifNomResponsable(VilleIUT* tiut[],int tlogi){
return; return;
} }
VilleIUT* v=tiut[noVille]; VilleIUT* v=tiut[noVille];
printf("\n\nEntrez le département à modifier:"); printf("\n\nEntrez le département à modifier :");
char dep[31]; char dep[31];
scanf("%*c%s",dep); scanf("%*c%s",dep);
if(!existeDep(v->ldept,dep)){ if(!existeDep(v->ldept,dep)){

Loading…
Cancel
Save