Menu + clearpage 14/12 17h46

master
Sami GHEBRID 2 years ago
parent f2fa4ab7e4
commit 94ef0a2f51

@ -1 +1,23 @@
#include"Ssae.h"
void menuAdmin(VilleIUT *tiut[], int *tLog, int tMax){
int select=0;
while(select!=9){
system("clear")
printf("\t AFFICHAGE ADMIN\n\n");
printf("1\tModifier le nombre de places dans un département\n");
printf("2\tCréer un nouveau département\n");
printf("3\tSupprimer un département\n");
printf("4\tLancer/Arrêter la phase de candidature\n");
printf("5\tModifer le nom du responsable d'un département\n");
scanf("%d",&select);
}
}
void clearpage(void)
{
char entre;
printf("\nappuyé sur la touche [ENTREE] pour continuer");
scanf("%*c%c", &entre);
system("clear");
}

@ -2,3 +2,36 @@
#include<stdlib.h>
#include<string.h>
#include<stdbool.h>
//################ Fonction Menu #####################
void menuAdmin(VilleIUT *tiut[], int *tLog, int tMax);
void menuCandidat(VilleIUT *tiut[], int *tLog, int tMax);
//################ Types de structures ###############
typedef struct maillonDept
{
char dept[31];
int nbP;
char respAd[31];
struct mailllonDept *suiv;
}MaillonDept,*ListeDept;
typedef struct
{
char nom[31];
ListeDept *lDept;
}VilleIUT;
//################ Fonctions communes #################
void clearpage(void);

@ -1 +1,5 @@
#include"Ssae.h"
int main(void){
}
Loading…
Cancel
Save