mirror of
https://gitlab.com/klmp200/LO41.git
synced 2025-07-13 21:29:25 +00:00
Merci klipfel pour l'astuce
This commit is contained in:
@ -10,14 +10,12 @@
|
||||
|
||||
typedef enum {RESIDENT, VISITOR} PASSENGER_TYPE;
|
||||
|
||||
typedef union u_Passenger {
|
||||
Resident * resident;
|
||||
Visitor * visitor;
|
||||
typedef struct s_Passenger {
|
||||
PASSENGER_TYPE type;
|
||||
union {
|
||||
Resident * resident;
|
||||
Visitor * visitor;
|
||||
};
|
||||
} Passenger;
|
||||
|
||||
typedef struct s_ElevatorPassenger {
|
||||
PASSENGER_TYPE type;
|
||||
Passenger passenger;
|
||||
} ElevatorPassenger;
|
||||
|
||||
#endif //LO41_PASSENGER_H
|
||||
|
Reference in New Issue
Block a user