Ajustements.

master
Yann CHAMPEAU 3 years ago
commit f308d1b5d5

@ -174,7 +174,6 @@ void Candidater(VilleIUT* tiut[],int tlogi, candidat* tcandidat[], int nbcandida
char DepRech[31]; char DepRech[31];
printf("Veuillez entrez le département dans lequel vous souhaitez y postuler : "); printf("Veuillez entrez le département dans lequel vous souhaitez y postuler : ");
scanf("%s",DepRech); scanf("%s",DepRech);
printf("Check !\n");
if (existeDep(tiut[ind]->ldept, DepRech)==0){ if (existeDep(tiut[ind]->ldept, DepRech)==0){
fprintf(stderr,"Erreur, le département n'existe pas."); fprintf(stderr,"Erreur, le département n'existe pas.");
return; return;
@ -184,7 +183,7 @@ void Candidater(VilleIUT* tiut[],int tlogi, candidat* tcandidat[], int nbcandida
int i, numcandid; int i, numcandid;
printf("Veuillez entrez le numéro du candidat qui vous a été attribué : "); printf("Veuillez entrez le numéro du candidat qui vous a été attribué : ");
scanf("%d",&numcandid); scanf("%d",&numcandid);
for (i=0;tcandidat[i]->numcandid!=numcandid && i<nbcandidat;++i); for (i=0; i<nbcandidat && tcandidat[i]->numcandid!=numcandid;++i);
voeu* voeu_ajout=(voeu*) malloc (sizeof(voeu)); voeu* voeu_ajout=(voeu*) malloc (sizeof(voeu));
if(voeu_ajout==NULL){ if(voeu_ajout==NULL){
perror("malloc"); perror("malloc");

Loading…
Cancel
Save