|
|
|
@ -964,6 +964,13 @@ void supprimerCandid(Candidat **tab, int *nbEle)
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void decalagenom(char* tab, int pos, int nbEle)
|
|
|
|
|
{
|
|
|
|
|
int i;
|
|
|
|
|
for(i = pos; i < nbEle - 1; i++)
|
|
|
|
|
tab[i] = tab[i + 1];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Candidat **reallocTCandid(Candidat **tab, int *tailleP)
|
|
|
|
|
{
|
|
|
|
|
Candidat **aux;
|
|
|
|
@ -987,9 +994,9 @@ void creationCandid(VilleIUT **tiut, int nbIUT, Candidat **tcandid, int *nbCandi
|
|
|
|
|
while(1)
|
|
|
|
|
{
|
|
|
|
|
idAdd = tcandid[*nbCandid - 1]->id + 1;
|
|
|
|
|
printf("Votre prénom : ");
|
|
|
|
|
scanf("%s%*c", prenom);
|
|
|
|
|
printf("Votre nom : ");
|
|
|
|
|
scanf("%s%*c", prenom);
|
|
|
|
|
printf("Votre prénom : ");
|
|
|
|
|
fgets(nom,30, stdin);
|
|
|
|
|
nom[strlen(nom) - 1] = '\0';
|
|
|
|
|
printf("%s %s\n", prenom, nom);
|
|
|
|
@ -1020,7 +1027,7 @@ void creationCandid(VilleIUT **tiut, int nbIUT, Candidat **tcandid, int *nbCandi
|
|
|
|
|
printf("voulez vous faire votre choix maintenant (oui|non) : ");
|
|
|
|
|
scanf("%s", choix);
|
|
|
|
|
if (strcmp(choix, "oui")==0)
|
|
|
|
|
modifCandid(tcandid, *nbCandid, tiut, 0, *nbCandid - 1);
|
|
|
|
|
modifCandid(tcandid, *nbCandid, tiut, nbIUT, *nbCandid - 1);
|
|
|
|
|
if (strcmp(choix, "non")==0)
|
|
|
|
|
break;
|
|
|
|
|
return;
|
|
|
|
@ -1892,7 +1899,7 @@ int decision(void)
|
|
|
|
|
return choix;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void gérerAdmiCandid(Candidat **tab, int nbCandid)
|
|
|
|
|
void gererAdmiCandid(Candidat **tab, int nbCandid)
|
|
|
|
|
{
|
|
|
|
|
int id, pos, trouve, i, irech;
|
|
|
|
|
char ville[30], dept[30], choix;
|
|
|
|
@ -1955,6 +1962,8 @@ void gérerAdmiCandid(Candidat **tab, int nbCandid)
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (!verifSelection())
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(!verifSelection())
|
|
|
|
@ -1968,9 +1977,4 @@ void gérerAdmiCandid(Candidat **tab, int nbCandid)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void decalagenom(char* tab, int pos, int nbEle)
|
|
|
|
|
{
|
|
|
|
|
int i;
|
|
|
|
|
for(i = pos; i < nbEle - 1; i++)
|
|
|
|
|
tab[i] = tab[i + 1];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|