diff --git a/specification1.h b/specification1.h index 9033769..765bd60 100644 --- a/specification1.h +++ b/specification1.h @@ -4,29 +4,34 @@ //~~~~~~~~~~~~~~~~~~~~~~~~~~~STRUCTURE~~~~~~~~~~~~~~~~~~~~~~~~~~~ -typedef struct devis{ - -}Devis; - -typedef struct maillontdevis{ - -}MaillonDevis; - -typedef struct ldevis{ - -}ListeDevis; - - -typedef struct offre{ - char travaux[20]; - -}Offre; - -typedef struct{ - int oeil.gauche; - int oeil.droit; - int bouche; -}Pascal; - +//? Est-ce utile de faire une structure pour l'adresse ? +typedef struct +{ + char rue[30]; + int codePostal; + char ville[30]; +} Adresse; + +typedef struct +{ + char tache[30]; + char entreprise[30]; + Adresse adresse; + int capital; + int duree; + int cout; +} Devis; + +typedef struct maillonDevis +{ + Devis devis; + struct maillonDevis *suiv; +} MaillonDevis, *ListeDevis; + +typedef struct +{ + char travaux[30]; + ListeDevis ldevis; +} Offre; //~~~~~~~~~~~~~~~~~~~~~~~~~~~FONCTION~~~~~~~~~~~~~~~~~~~~~~~~~~~~ \ No newline at end of file