Merge branch 'master' of https://codefirst.iut.uca.fr/git/antoine.perederii/SAE1.02-Structure_de_Donnees
commit
f1a1c90f5c
@ -0,0 +1,4 @@
|
|||||||
|
Grenoble Informatique 112 Dupont Jean
|
||||||
|
Clermont-Ferrand Informatique 136 Simon Carine
|
||||||
|
Aurillac Bio-Informatique 56 Ayoub Milaki
|
||||||
|
Clermont-Ferrand Biologie 120 Coralie Elebone
|
@ -0,0 +1,31 @@
|
|||||||
|
#include "partie1.h"
|
||||||
|
|
||||||
|
void choixMenu(void)
|
||||||
|
{
|
||||||
|
int choix;
|
||||||
|
printf("Veuillez choisir votre menu :\n");
|
||||||
|
printf("1 -\tMenu utilisateur");
|
||||||
|
printf("2 -\tMenu administrateur");
|
||||||
|
printf("\nChoix : ");
|
||||||
|
scanf("%d", &choix);
|
||||||
|
switch (choix)
|
||||||
|
{
|
||||||
|
case 1:
|
||||||
|
menuUtilisateur();
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
menuAdministrateur();
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
void menuUtilisateur(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void menuAdministrateur(void)
|
||||||
|
{
|
||||||
|
}*/
|
@ -0,0 +1,24 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
|
typedef struct maillonDept
|
||||||
|
{
|
||||||
|
char departement[30];
|
||||||
|
int nbP;
|
||||||
|
char resp[30];
|
||||||
|
struct maillonDept *suiv;
|
||||||
|
} MaillonDept, *ListeDept;
|
||||||
|
|
||||||
|
typedef struct
|
||||||
|
{
|
||||||
|
char ville[30];
|
||||||
|
ListeDept ldept;
|
||||||
|
} VilleIUT;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
void choixMenu(void);
|
||||||
|
void menuUtilisateur(void);
|
||||||
|
void menuAdministrateur(void);
|
@ -0,0 +1,7 @@
|
|||||||
|
#include "partie1.h"
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
choixMenu();
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in new issue