Tfe

Ongi etorri tfe-ren webgunera...

Old stuff/ecole_etude_fac_de_pau/licence_3/genie-logiciel/td1/parking.h

(Deskargatu)

typedef struct 
{
    char immatriculation[8];
} vehicule;

typedef struct
{
    int numero;
} place;


typedef struct 
{
    vehicule vehicules[1200];
    place places[1200];
    int nb_places_occupees;
} parking;


parking* initialiser_parking();
parking* se_garer(parking*, place*, vehicule*);
int autoriser(parking*);
int occupee(parking*, place*);

parking* quitter(parking*,vehicule*);

place* quelle_place(parking*, vehicule*);
vehicule* quelle_vehicule(parking*, place*);


place* places_occupees(parking*,int* nb_retour);