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.

85 lines
1.3 KiB

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "sae1-02.h"
// général
// f enregistrement
// Partie 1
// Partie 2
/*
( beaucoup de donnée a traité n(min 10 ; max ?)*nb candidat donc faire attention )
possibilité pour le candidat pouvoir <! table = (modifier - ajouter - supp) !>
- nb candidats (général en haut du doss)
- num candidat
- nom candidat
- prénom candidat
- liste des notes (moyenne dans le sens précis -- math francais anglais et matière spé)
|<= nb choix
|=>recurrence :
|- ville
|- département
|- décision ( admis - 1 /attente 0 default /refusé -2 )
|- validation candidat ( 0 default / -1 refus de ce choix / 2 accepte )
*/
// Partie 3
// Partie 4
// Général (menu et ce qui en ai relié)
questionadmin(){
printf("\nQuel numéro détudiant ?\n==>");
scanf("%d%*c", &choix);
printf("\n");
}
int menu(void){
//charger
int i=0, choix;
while(i!=1){
printf("\n\tmenu\n\n");
printf("1\tutilisateur\n");
printf("2\tadmin\n");
printf("3\tresponsable d'admission\n");
printf("\nQuel est votre choix ?\n==>");
scanf("%d%*c", &choix);
printf("\n");
if(choix==1){
}
if(choix==2){
}
if(choix==3){
}
if(choix<1 || choix>6){
printf("mauvaise saisie\n");
}
}
//enregister
return 1;
}