parent
4b68c7bbaa
commit
b62047b256
@ -1 +1,13 @@
|
|||||||
#include "Msae.h"
|
#include "Msae.h"
|
||||||
|
|
||||||
|
int login(void)
|
||||||
|
{
|
||||||
|
char id,mdp[31]="mettez20svp";
|
||||||
|
while(id!='A' && id!='a' && id!='U' && id!='u')
|
||||||
|
{
|
||||||
|
printf("################################################################\n\tBienvenue!\n\n\n\tSouhaitez-vous vous connecter en tant qu'utilisateur ou administeur? (U/A)\t");
|
||||||
|
scanf("%c%*c",&id);
|
||||||
|
printf("%c",id);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
@ -1,4 +1,26 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
//######### Définition des types #############
|
||||||
|
|
||||||
|
typedef struct maillonDept
|
||||||
|
{
|
||||||
|
char dept[31];
|
||||||
|
int nbP;
|
||||||
|
char respAd[31];
|
||||||
|
struct mailllonDept *suiv;
|
||||||
|
|
||||||
|
}MaillonDept,*ListeDept;
|
||||||
|
|
||||||
|
typedef struct
|
||||||
|
{
|
||||||
|
char nom[31];
|
||||||
|
ListeDept *lDept;
|
||||||
|
|
||||||
|
}VilleIUT;
|
||||||
|
|
||||||
|
//########## fonction commune ###############
|
||||||
|
int login(void);
|
||||||
|
void globale(void);
|
Loading…
Reference in new issue