-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstruct.h
More file actions
50 lines (39 loc) · 979 Bytes
/
Copy pathstruct.h
File metadata and controls
50 lines (39 loc) · 979 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef STRUCTDEF
#define STRUCTDEF
/*---------------------Structure Article---------------------*/
typedef struct{
int idArticle;
float prixunitaire;
int quantite;
char designation[50];
} Article;
/*----------------------Structure LigneCommande---------------------*/
typedef struct
{
int idCommande;
Article* article;
int idClient;
int quantite;
} LigneCommande;
typedef struct maillon{
LigneCommande v;
struct maillon * suiv;
}Maillon;
typedef Maillon *ListeCommande;
typedef enum {faux,vrai}Booleen;
/*---------------------Structure Client---------------------*/
typedef struct{
int idClient;
char civilite[5];
char nom[10];
char prenom[10];
char adresse[70];
ListeCommande commandesEnAttente;
ListeCommande commandesEnCours;
} Client;
/*---------------------Variable Global---------------------*/
extern char nomFichArt[50];
extern char nomFichClient[50];
extern char nomFichCommande[50];
extern char nomFichLivraison[50];
#endif