Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef __HOSTO__H__
- #define __HOSTO__H__
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #include <time.h>
- #define MAX 250
- #define LENGTH 8
- /* Enumération booléenne */
- typedef enum Bool
- {
- false,
- true
- }Bool;
- /* Definition de la structure d'un patient */
- typedef struct Sick
- {
- char num[MAX];
- char name[MAX];
- char surname[MAX];
- char address[MAX];
- char maritalSituation[MAX];
- int birthYear;
- int birthDate;
- int birthMonth;
- char phone[MAX];
- }Sick;
- /* Structure medecin */
- typedef struct Medecin
- {
- int numID;
- char name[MAX];
- char surname[MAX];
- char phone[MAX];
- char speciality[MAX];
- }Medecin;
- /* Liste de patients */
- typedef struct ListElement
- {
- Sick patient;
- struct ListElement *next;
- }ListElement, *List;
- /* Structure d'une pile de medecin*/
- typedef struct Pile
- {
- Medecin liste;
- struct Pile *next;
- }Pile, *ListMedecin;
- /* Structure gérant le nombre de lits par salle liee a une unité de soin */
- typedef struct Lit
- {
- int nbLit;
- int uniteDeSoin;
- }Lit;
- /* Structure de la File de salles disponibles dans l'hopital */
- typedef struct Salle
- {
- Lit nombreDeLit;
- struct Salle *next;
- }Salle, *sallePatient;
- static Salle *premiere = NULL;
- static Salle *derniere = NULL;
- static int nb_salle = 0;
- /* Prototypes des fonctions */
- List new_list(void);
- ListMedecin new_ListOf_Medecine(void);
- Bool is_empty_list_Of_Medecine(ListMedecin mylist);
- ListMedecin addDoctor(ListMedecin mylist, Medecin doctor);
- void ListDoctor(ListMedecin mylist);
- void medecin(void);
- void patient(void);
- int doctorNumber(ListMedecin mylist);
- ListMedecin pop_doctor(ListMedecin mylist);
- Medecin topMedecin(ListMedecin mylist);
- ListMedecin deleteDoctor(ListMedecin mylist);
- Bool is_empty_list(List mylist);
- void print_list(List mylist);
- List addPatient(List mylist, Sick patient);
- List deletePatient(List mylist);
- int length(List mylist);
- void timer(void);
- void temps(void);
- Bool salle_vide(void);
- int derniere_salle(void);
- int premiere_salle(void);
- int nombre_salle(void);
- void vider_une_salle(void);
- void occuper_une_salle(Lit p);
- void lister_les_salles(void);
- void fermer_les_salles(void);
- int soin(int choix);
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement