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.
38 lines
715 B
38 lines
715 B
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <errno.h>
|
|
#include "partie1/saeP1.h"
|
|
#include "annexe/saeAnnexe.h"
|
|
#include "partie2/saeP2.h"
|
|
#include "partie3/saeP3.h"
|
|
#include "partie4/saeP4.h"
|
|
|
|
int main(void)
|
|
{
|
|
system("clear");
|
|
VilleIUT* tiut[36529];
|
|
int tlogi=loadIUT(tiut), quit=0;
|
|
while(!quit){
|
|
menu();
|
|
char user, confirmation;
|
|
scanf("%c",&user);
|
|
switch(user){
|
|
case 'C':
|
|
reset();
|
|
menuUser(tiut,tlogi);
|
|
break;
|
|
case 'A':
|
|
reset();
|
|
menuAdmin(tiut,&tlogi);
|
|
break;
|
|
case 'Q':
|
|
printf("Êtes-vous sûr de vouloir quitter ? (Y pour continuer)\n\n");
|
|
scanf("%*c%c",&confirmation);
|
|
if(confirmation=='Y') quit=1;
|
|
system("clear");
|
|
}
|
|
}
|
|
//save();
|
|
return 0;
|
|
}
|