Merge branch 'master' of https://codefirst.iut.uca.fr/git/sami.ghebrid/SAE_Algo1.02
commit
de61e23cd9
@ -1 +1,27 @@
|
||||
#include "Jsae.h"
|
||||
#include "Jsae.h"
|
||||
|
||||
int chargement(VilleIUT *tiut[],int *tMax)
|
||||
{
|
||||
FILE *flot;
|
||||
VilleIUT v;
|
||||
MaillonDept m;
|
||||
flot = fopen("")
|
||||
}
|
||||
|
||||
void globale(void)
|
||||
{
|
||||
int tLog, tMax = 10;
|
||||
VilleIUT **tiut;
|
||||
tiut = (VilleIUT **)malloc(sizeof(VilleIUT *) * 10);
|
||||
if(tiut == NULL)
|
||||
{
|
||||
printf("Problème d'allocation mémoire du tableau tiut\n");
|
||||
exit(1);
|
||||
}
|
||||
tLog = chargement(tiut,&tMax);
|
||||
if(tLog == -1)
|
||||
{
|
||||
printf("Le programme ne peut pas fonctionner\n");
|
||||
exit(1);
|
||||
}
|
||||
}
|
@ -1 +1,23 @@
|
||||
#include"Ssae.h"
|
||||
#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");
|
||||
}
|
Loading…
Reference in new issue