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.
37 lines
616 B
37 lines
616 B
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
//~~~~~~~~~~~~~~~~~~~~~~~~~~~STRUCTURE~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
//? 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~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|