|
|
@ -3,15 +3,12 @@
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include "sae1-02.h"
|
|
|
|
#include "sae1-02.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Fonction général
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Partie 1
|
|
|
|
// Partie 1
|
|
|
|
|
|
|
|
|
|
|
|
// Partie 2
|
|
|
|
// Partie 2
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
table - fichier text ( beaucoup de donnée a traité n(min 10 ; max ?)*nb candidat donc faire attention )
|
|
|
|
?table - fichier text ( beaucoup de donnée a traité n(min 10 ; max ?)*nb candidat donc faire attention )
|
|
|
|
possibilité pour le candidat pouvoir <! table = (modifier - ajouter - supp) !>
|
|
|
|
possibilité pour le candidat pouvoir <! table = (modifier - ajouter - supp) !>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -25,8 +22,8 @@
|
|
|
|
|=>recurrence :
|
|
|
|
|=>recurrence :
|
|
|
|
|- ville
|
|
|
|
|- ville
|
|
|
|
|- département
|
|
|
|
|- département
|
|
|
|
|- décision ( admis - 1 /attente -1 /refusé -2 )
|
|
|
|
|- décision ( admis - 1 /attente 0 default /refusé -2 )
|
|
|
|
|- validation candidat ( 0 par defaut / -1 refus de ce choix / 2 accepte )
|
|
|
|
|- validation candidat ( 0 default / -1 refus de ce choix / 2 accepte )
|
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
@ -39,7 +36,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
// Général (menu et ce qui en ai relié)
|
|
|
|
// Général (menu et ce qui en ai relié)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
questionadmin(){
|
|
|
|
|
|
|
|
printf("\nQuel le numéro détudiant ?\n==>");
|
|
|
|
|
|
|
|
scanf("%d%*c", &choix);
|
|
|
|
|
|
|
|
printf("\n");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int menu(void){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int i=0, choix;
|
|
|
|
|
|
|
|
while(i!=1){
|
|
|
|
|
|
|
|
printf("\n\tmenu\n\n");
|
|
|
|
|
|
|
|
printf("1\tutilisateur\n");
|
|
|
|
|
|
|
|
printf("2\tadmin\n");
|
|
|
|
|
|
|
|
printf("\nQuel est votre choix ?\n==>");
|
|
|
|
|
|
|
|
scanf("%d%*c", &choix);
|
|
|
|
|
|
|
|
printf("\n");
|
|
|
|
|
|
|
|
if(choix==1){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if(choix==2){
|
|
|
|
|
|
|
|
while(i!=1){
|
|
|
|
|
|
|
|
printf("\n\tmenu\n\n");
|
|
|
|
|
|
|
|
printf("1\tmodification nombre de place dans un département\n");
|
|
|
|
|
|
|
|
printf("2\tcréer un département dans un iut\n");
|
|
|
|
|
|
|
|
printf("3\tsupp un département un iut\n");
|
|
|
|
|
|
|
|
printf("4\tlancer ou arreterla phase de candidature d'un étudiant\n");
|
|
|
|
|
|
|
|
printf("5\tmodifier le nom du responsable d'un département\n");
|
|
|
|
|
|
|
|
printf("6\t\n");
|
|
|
|
|
|
|
|
printf("\nQuel est votre choix ?\n==>");
|
|
|
|
|
|
|
|
scanf("%d%*c", &choix);
|
|
|
|
|
|
|
|
printf("\n");
|
|
|
|
|
|
|
|
if(choix==1){}
|
|
|
|
|
|
|
|
if(choix==2){}
|
|
|
|
|
|
|
|
if(choix==3){}
|
|
|
|
|
|
|
|
if(choix==4){}
|
|
|
|
|
|
|
|
if(choix==5){}
|
|
|
|
|
|
|
|
if(choix==6){}
|
|
|
|
|
|
|
|
if(choix<1 || choix>6){
|
|
|
|
|
|
|
|
printf("mauvaise saisie\n");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if(choix<1 || choix>6){
|
|
|
|
|
|
|
|
printf("mauvaise saisie\n");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|