1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
| #include<iostream.h>
#include<conio.h>
struct patient
{int num_sec ; ça c'est la creation d'un enregistrement pour les infos de pat
char *nom ; pour les infos des patients
char *prenom ; je veux cree une liste de le cas d'urgence
char *etat; et une file pour le cas d'analyse et
int* age; consultation en utilisant FIFO
}; je ne sais pas comment je vais faire
struct liste
{patient p;
liste *suivant ;
};
void creation (l:list, e:element ){
list=null;
list*l=new list;
p*patient=U;
p*next=null;
list=patient;
list*l=new list;
p*patient=A;
p*next=list;
list=patient;
list*l=new list;
p*patient=C ;
p*next=list;
};
void saisir ( patient &pat)
{cout<<"entrez le num_sec : ";cin>>pat.num_sec;
cout<<"entrez le nom : ";cin>>pat.nom;
cout<<"entrez le prenom : ",cin>>pat.prenom,
cout<<"entrz l etat : ";cin>>pat.etat;
cout<<"entrez l age : ";cin>>pat.age;
}
void main () |
Partager