Merge remote-tracking branch 'refs/remotes/origin/master'

master
Roxane ROSSETTO 2 years ago
commit 93a18d1104

@ -13,7 +13,7 @@ MaillonDept lireM(FILE *f)//lire maillon
return m; return m;
} }
MaillonDept lireStdin(void) MaillonDept lireStdin(void)//lire un maillon mais à l'aide de l'entrée standard
{ {
MaillonDept m; MaillonDept m;
printf("Département :\t"); printf("Département :\t");
@ -179,7 +179,7 @@ void MaJnbP(VilleIUT **tV, int nb)
{ {
exit; exit;
} }
v = searchVille(tV, ville, nb); v = searchVille(tV, reponse, nb);
} }
printf("Département : \t"); printf("Département : \t");
@ -196,7 +196,7 @@ void MaJnbP(VilleIUT **tV, int nb)
{ {
exit; exit;
} }
elt = recherche(tV[v]->ldept, dpt); elt = recherche(tV[v]->ldept, reponse);
} }
printf("Nouveau nombre de places disponibles : \t"); printf("Nouveau nombre de places disponibles : \t");
@ -250,7 +250,7 @@ void createIUT(VilleIUT **tV, int nb)//crée un IUT dans la ville souhaitée.
{ {
exit; exit;
} }
v = searchVille(tV, ville, nb); v = searchVille(tV, reponse, nb);
} }
m = lireStdin();//on lit un maillon sur l'entrée standard m = lireStdin();//on lit un maillon sur l'entrée standard
@ -402,7 +402,6 @@ int Admin(VilleIUT **tV, int nb)
//printf("*--------------------6-Retour-----------------------*\n"); //printf("*--------------------6-Retour-----------------------*\n");
printf("*****************************************************\n"); printf("*****************************************************\n");
scanf("%d", &reponse); scanf("%d", &reponse);
printf("%d", reponse);
switch(reponse) switch(reponse)
{ {
case 1: MaJnbP(tV, nb); return 0; case 1: MaJnbP(tV, nb); return 0;
@ -422,7 +421,7 @@ int Admin(VilleIUT **tV, int nb)
int utilisateur (VilleIUT **tV, int nb){//Onglet accueille des utilisateurs int utilisateur (VilleIUT **tV, int nb){//Onglet accueille des utilisateurs
int reponse, i; int reponse, i;
char rdpt[20]; char rdpt[20];
MaillonDept * ldepart; MaillonDept * ldepart;
@ -434,13 +433,18 @@ MaillonDept * ldepart;
printf("*--------------------4-Retour-----------------------*\n"); printf("*--------------------4-Retour-----------------------*\n");
printf("*****************************************************\n"); printf("*****************************************************\n");
<<<<<<< HEAD
scanf("%d", &reponse);//enregistrement du choix scanf("%d", &reponse);//enregistrement du choix
printf("%d", reponse); printf("%d", reponse);
while ( reponse == 1 || reponse == 2 || reponse == 3 || reponse == 4){ // tant que le choix fait partie de ces propositions while ( reponse == 1 || reponse == 2 || reponse == 3 || reponse == 4){ // tant que le choix fait partie de ces propositions
=======
scanf("%d", &reponse);
while ( reponse == 1 || reponse == 2 || reponse == 3 || reponse == 4){
>>>>>>> refs/remotes/origin/master
if ( reponse == 1 ){ if ( reponse == 1 ){
printf("Ville/départements \t Places dispo \t\t Responsable\n"); printf("Ville/départements \t Places dispo \t\t Responsable\n");
Affichetableau(tV, nb); Affichetableau(tV, nb);
return 0; return 0;
} }
if ( reponse == 2){ if ( reponse == 2){
AffichenbPtableau(tV, nb); AffichenbPtableau(tV, nb);
@ -458,9 +462,9 @@ MaillonDept * ldepart;
return 0; return 0;
} }
if ( reponse == 4 ) if ( reponse == 4 )
return 2; return 2;
} }
return 0 ; return 0 ;
} }
@ -469,7 +473,7 @@ void test (void){ // fonction globale
int acc, nb, nbville, repAdm, repVis; int acc, nb, nbville, repAdm, repVis;
VilleIUT *tV[200]; VilleIUT *tV[200];
nbville = Chargement(tV, 200, "part1.don"); nbville = Chargement(tV, 200, "testpart.don");
printf("*****************************************************\n"); printf("*****************************************************\n");
printf("*---------------------Accueil-----------------------*\n"); printf("*---------------------Accueil-----------------------*\n");
@ -487,7 +491,7 @@ void test (void){ // fonction globale
} }
if (acc == 2){ if (acc == 2){
repVis = utilisateur (tV, nbville); repVis = utilisateur (tV, nbville);
if (repVis == 2){ if (repVis == 2){
acc = 3; acc = 3;
} }
@ -504,10 +508,10 @@ 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?
FONCTION RECHERCHE DANS TEST NE RETURN RIEN FONCTION RECHERCHE DANS TEST NE RETURN RIEN
FONCTION AFFICHAGE nbP AFFICHE QUAND MEME LE NOM DES RESPONSABLE... MAIS PAS TOUS FONCTION AFFICHAGE nbP AFFICHE QUAND MEME LE NOM DES RESPONSABLE... MAIS PAS TOUS
JE PEUX Y REVENIR DEMAIN SUR MA PARTIE, PAR CONTRE SUR TA PARTIE JE CROIS QU'IL Y A DES ERREURS JE PEUX Y REVENIR DEMAIN SUR MA PARTIE, PAR CONTRE SUR TA PARTIE JE CROIS QU'IL Y A DES ERREURS
DE SEGMENTATION HESITE PAS A FAIRE RE RUN LE TRUC DE SEGMENTATION HESITE PAS A FAIRE RE RUN LE TRUC
*/ */

Loading…
Cancel
Save