Mise en forme de l'affichage faite pour menu principal et menu utilisateur yeeah

master
Nicolas BLONDEAU 2 years ago
parent 527603107d
commit 41d22f1576

@ -7,30 +7,44 @@
int main(){
int n, nc, codeErr, rootChoice=1, choix;
char sauv;
VilleIUT *tiut[200];
Candidat *tcandidat[200];
//Affichage plus propre en effaçant l'historique du terminal
system("cls"); // pour Windows
system("clear"); // pour Unix
n=chargement(tiut ,200);
printf("Nombre de villes : %d\n",n);
printf("==============================================================\n");
printf("\n\tNombre de villes : %d\t",n);
nc=chargementcandidat(tcandidat ,200);
printf("\nNombre de candidat : %d\n",nc);
while(rootChoice==1){
system("cls"); // pour Windows
system("clear"); // pour Unix
printf("Nombre de candidat : %d\n",nc);
while(rootChoice==1){/*
printf("\t\tTableau Ville et departement\n");
printf("\nNombre de villes : %d\n",n);
affichage(tiut,n);
printf("\n\n\n\t\tTableau Candidat et choix\n");
printf("\nNombre de candidat : %d\n",nc);
affichageCandidatchoix(tcandidat,nc);
printf("\n\nUtilisateur - 1\tAdministrateur - 2\tCandidat - 3\tResponsable - 4\tSauvegarder et quitter - 5\n:");
affichageCandidatchoix(tcandidat,nc);*/
printf("\n >--------------------------------------<\n");
printf("\n\t1 - Utilisateur / Invité");
printf("\n\t2 - Administrateur");
printf("\n\t3 - Candidat");
printf("\n\t4 - Responsable");
printf("\n\t5 - Sauvegarder et quitter\n");
printf("\n >--------------------------------------<\n");
printf("\n\tVotre choix : ");
scanf("%d",&choix);
if(choix==1){
printf("\nMenu Utilisateur");
//Menu Utilisateur
system("cls");
system("clear");
MenuUtilisateur(tiut, n);
}
if(choix==2){
printf("\nMenu Administrateur");
//Menu Administrateur
system("cls");
system("clear");
MenuAdministrateur(tiut, n);
}
if(choix==3){
@ -51,5 +65,7 @@ int main(){
rootChoice = 0;
}
system("cls");
system("clear");
}
}

@ -6,7 +6,14 @@
void MenuUtilisateur(VilleIUT *tiut[], int n){
int choix, succes;
while(choix!=5){
printf("\n1 - Recherche d'un IUT\n2 - Départements dans chaque IUT\n3 - Nombre de places en première année\n4 - Recherche d'un département\n5 - Quitter\n");
printf("\n >--------------------------------------------------<\n");
printf("\n\t1 - Recherche d'un IUT");
printf("\n\t2 - Départements dans chaque IUT");
printf("\n\t3 - Nombre de places en première année");
printf("\n\t4 - Recherche d'un département");
printf("\n\t5 - Quitter\n");
printf("\n >--------------------------------------------------<\n");
printf("\n\tVotre choix : ");
scanf("%d%*c",&choix);
if(choix==1){
//Recherche de tel IUT

Loading…
Cancel
Save