Compare commits

..

No commits in common. 'f308d1b5d5dd803c3e18dcd6e2dfe363fdb60d7a' and '6b64a76e00be3f6f55314adddd36c8ca354d9282' have entirely different histories.

@ -174,26 +174,20 @@ void Candidater(VilleIUT* tiut[],int tlogi, candidat* tcandidat[], int nbcandida
char DepRech[31];
printf("Veuillez entrez le département dans lequel vous souhaitez y postuler : ");
scanf("%s",DepRech);
if (existeDep(tiut[ind]->ldept, DepRech)==0){
fprintf(stderr,"Erreur, le département n'existe pas.");
return;
}
if (existeDep(tiut[ind]->ldept, DepRech)==0) return;
else
{
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 lui a été attribué : ");
scanf("%d",&numcandid);
for (i=0; i<nbcandidat && tcandidat[i]->numcandid!=numcandid;++i);
voeu* voeu_ajout = (voeu*) malloc (sizeof(voeu));
if(voeu_ajout==NULL){
perror("malloc");
exit(errno);
}
strcpy(voeu_ajout->ville,VilleRech);
strcpy(voeu_ajout->dep,DepRech);
voeu_ajout->ddep=0;
voeu_ajout->vcand=0;
tcandidat[i]->TabVoeu[tcandidat[i]->nbchoix-1]=voeu_ajout;
printf("Check !\n");
tcandidat[i]->nbchoix++;
}

Loading…
Cancel
Save