|
|
@ -132,7 +132,7 @@ void AffnbPdpt ( MaillonDept *dpt )//Affiche nombre de place par département d'
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if ( dpt == NULL) return;
|
|
|
|
if ( dpt == NULL) return;
|
|
|
|
printf("%s \t%d \n", dpt->departement, dpt->nbP);
|
|
|
|
printf("%s \t%d \n", dpt->departement, dpt->nbP);
|
|
|
|
AfficheDpmt(dpt->suiv);
|
|
|
|
AffnbPdpt(dpt->suiv);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void affichenbPIUT (VilleIUT *iut)//Affiche nombre de place restante d'un iut avec ses départements
|
|
|
|
void affichenbPIUT (VilleIUT *iut)//Affiche nombre de place restante d'un iut avec ses départements
|
|
|
@ -141,12 +141,12 @@ void affichenbPIUT (VilleIUT *iut)//Affiche nombre de place restante d'un iut av
|
|
|
|
AffnbPdpt(iut->ldept);
|
|
|
|
AffnbPdpt(iut->ldept);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void AffichenbPtableau(VilleIUT ** TabIUT, int n )//Affiche le tableau de places restantes des iuts avec leurs départements
|
|
|
|
void AffichenbPtableau(VilleIUT ** TIUT, int n )//Affiche le tableau de places restantes des iuts avec leurs départements
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int i;
|
|
|
|
int i;
|
|
|
|
for ( i = 0 ; i < n ; i++ )
|
|
|
|
for ( i = 0 ; i < n ; i++ )
|
|
|
|
if ( TabIUT[i]->nbDept > 0)
|
|
|
|
if ( TIUT[i]->nbDept > 0)
|
|
|
|
affichenbPIUT(TabIUT[i]);
|
|
|
|
affichenbPIUT(TIUT[i]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -434,10 +434,11 @@ MaillonDept * ldepart;
|
|
|
|
printf("*--------------------4-Retour-----------------------*\n");
|
|
|
|
printf("*--------------------4-Retour-----------------------*\n");
|
|
|
|
printf("*****************************************************\n");
|
|
|
|
printf("*****************************************************\n");
|
|
|
|
|
|
|
|
|
|
|
|
scanf("%d", &reponse);
|
|
|
|
scanf("%d", &reponse);//enregistrement du choix
|
|
|
|
printf("%d", reponse);
|
|
|
|
printf("%d", reponse);
|
|
|
|
while ( reponse == 1 || reponse == 2 || reponse == 3 || reponse == 4){
|
|
|
|
while ( reponse == 1 || reponse == 2 || reponse == 3 || reponse == 4){ // tant que le choix fait partie de ces propositions
|
|
|
|
if ( reponse == 1 ){
|
|
|
|
if ( reponse == 1 ){
|
|
|
|
|
|
|
|
printf("Ville/départements \t Places dispo \t\t Responsable\n");
|
|
|
|
Affichetableau(tV, nb);
|
|
|
|
Affichetableau(tV, nb);
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -446,12 +447,14 @@ MaillonDept * ldepart;
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ( reponse == 3){
|
|
|
|
if ( reponse == 3){
|
|
|
|
printf("Quel departement souhaitez vous integrer?\n");
|
|
|
|
printf("Quel departement souhaiteriez vous integrer?\n");
|
|
|
|
scanf("%s", rdpt);
|
|
|
|
scanf("%s", rdpt);
|
|
|
|
|
|
|
|
printf("%s\n", rdpt );
|
|
|
|
|
|
|
|
AfficheDpmt(tV[nb]->ldept);
|
|
|
|
for ( i = 0 ; i < nb ; i++){
|
|
|
|
for ( i = 0 ; i < nb ; i++){
|
|
|
|
ldepart = recherche (tV[i]->ldept, rdpt);
|
|
|
|
ldepart = recherche (tV[i]->ldept, rdpt);
|
|
|
|
AfficheDpmt(ldepart);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
AfficheDpmt(ldepart);
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ( reponse == 4 )
|
|
|
|
if ( reponse == 4 )
|
|
|
@ -480,6 +483,7 @@ void test (void){ // fonction globale
|
|
|
|
|
|
|
|
|
|
|
|
if (acc == 1){
|
|
|
|
if (acc == 1){
|
|
|
|
repAdm = Admin (tV, nbville);
|
|
|
|
repAdm = Admin (tV, nbville);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (acc == 2){
|
|
|
|
if (acc == 2){
|
|
|
|
repVis = utilisateur (tV, nbville);
|
|
|
|
repVis = utilisateur (tV, nbville);
|
|
|
@ -498,6 +502,7 @@ void test (void){ // fonction globale
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* SOUCIS AVEC LA FONCTION TEST, JE N'ARRIVE PAS A SORTIR DU WHILE POUR RETOURNER AU MENU PRINCIPAL
|
|
|
|
/* SOUCIS AVEC LA FONCTION TEST, JE N'ARRIVE PAS A SORTIR DU WHILE POUR RETOURNER AU MENU PRINCIPAL
|
|
|
|
ADMIN/ VISITEUR. FONCTION RECURCIVE?
|
|
|
|
ADMIN/ VISITEUR. FONCTION RECURCIVE?
|
|
|
|
|
|
|
|
|
|
|
|