You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.6 KiB
51 lines
1.6 KiB
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include "iut.h"
|
|
|
|
void MenuAdministrateur(VilleIUT V){
|
|
char departement[30],respon[30];
|
|
int choix,nbp;
|
|
MaillonDept *resultat;
|
|
printf("\n1-Modifier place\n2-Creer un departement\n3-supprimer un département\n4-Lancer et Arreter la phase de canditature\n5-modifier nom responsable");
|
|
scanf("%d",&choix);
|
|
if(choix==1){
|
|
//modification nbP
|
|
}
|
|
if(choix==2){
|
|
//creer departemement
|
|
printf("\ndepartement :");
|
|
scanf("%s",departement);
|
|
printf("\nnombre de place :");
|
|
scanf("%d",&nbp);
|
|
printf("\nresponsable :");
|
|
scanf("%s",respon);
|
|
V=Enfiler(V,departement,nbp,respon);
|
|
}
|
|
if(choix==3){
|
|
//supprimer departement et pauser condition pour choisir qui suppr
|
|
printf("\ndepartement :");
|
|
scanf("%s",departement);
|
|
printf("\nresponsable :");
|
|
scanf("%s",respon);
|
|
// *resultat=recherche(V.Ville,departement,respon);
|
|
V=defiler(V);
|
|
}
|
|
if(choix==4){
|
|
//Lancer et arreter phase de canditature
|
|
}
|
|
if(choix==5){
|
|
//modification responsable
|
|
}
|
|
}
|
|
|
|
//recherche
|
|
/*
|
|
MaillonDept recherche (MaillonDept *Ville,char *departement,char *responsable){
|
|
if(Ville==NULL)return NULL;
|
|
if(strcmp(Ville->departement,departement) ==0 && strcmp(Ville->resp,responsable) ==0)return Ville;
|
|
return recherche(Ville->suivant,departement,responsable);
|
|
}*/
|
|
|
|
//------------------------------------------------------------------------------
|