|
|
|
@ -162,23 +162,25 @@ void ListeCandidat(int nbcandidat,candidat *tcandidat[])
|
|
|
|
|
printf("Candidat non trouvé");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Candidater(VilleIUT* tiut[],int tlogi, candidat* tcandidat[], int numcandid)
|
|
|
|
|
void Candidater(VilleIUT* tiut[],int tlogi, candidat* tcandidat[], int nbcandidat)
|
|
|
|
|
{
|
|
|
|
|
char VilleRech[31];
|
|
|
|
|
printf("Veuillez entrez la ville de l'IUT au quel vous souhaitez candidatez :");
|
|
|
|
|
printf("Veuillez entrez la ville de l'IUT au quel vous souhaitez candidatez : ");
|
|
|
|
|
scanf("%s",VilleRech);
|
|
|
|
|
int ind=rechercheIUT(tiut,tlogi,VilleRech);
|
|
|
|
|
if(ind==-1) return;
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
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);
|
|
|
|
|
if (existeDep(tiut[ind]->ldept, DepRech)==0) return;
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
int i;
|
|
|
|
|
for (i=0;tcandidat[i]->numcandid!=numcandid;++i);
|
|
|
|
|
int i, numcandid;
|
|
|
|
|
printf("Veuillez entrez le numéro du candidat qui lui a été attribué : ");
|
|
|
|
|
scanf("%d",&numcandid);
|
|
|
|
|
for (i=0;tcandidat[i]->numcandid!=numcandid && i<nbcandidat;++i);
|
|
|
|
|
voeu* voeu_ajout = (voeu*) malloc (sizeof(voeu));
|
|
|
|
|
strcpy(voeu_ajout->ville,VilleRech);
|
|
|
|
|
strcpy(voeu_ajout->dep,DepRech);
|
|
|
|
|