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.
98 lines
1.6 KiB
98 lines
1.6 KiB
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <stdlib.h>
|
|
#include "sae1-02.h"
|
|
|
|
// général
|
|
|
|
// f enregistrement
|
|
|
|
|
|
// Partie 1
|
|
|
|
|
|
void affichageVilleIUT() {
|
|
printf("%s\t%s\t%d\t%s")
|
|
}
|
|
|
|
int rechercheVille() {
|
|
|
|
}
|
|
|
|
VilleIUT lire(FILE * fe) {
|
|
VilleIUT v;
|
|
fscanf(fe, "%s", V.ville);
|
|
fscanf(fe, "%s", v.Idept->departement);
|
|
fscanf(fe, "%d", v.Idept->nbplace);
|
|
fgets(v.Idept->responsable, 31, fe);
|
|
v.Idept->responsable[strlen(v.Idept->responsable)-1] = '\0';
|
|
return v;
|
|
}
|
|
|
|
// 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;
|
|
}
|