blob: 166616c314e51c2a5799b3b480058b6b0b10768d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#include "LDC.h"
/* N is the number of guichet */
#define N 15
ChainedList** creerBureauPoste(){
ChainedList** postes = (ChainedList**) malloc(N*sizeof(ChainedList));
return postes;
}
void afficherPoste(ChainedList** guichets){
for (int i = 0; i < N; i++){
afficher(guichets[i]);
}
}
ChainedList* ajouterAuGuichet(ChainedList* guichet, int id){
return insererEnFin(guichet, creerElement(id));
}
ChainedList* appelerAuGuichet(ChainedList* guichet){
return supprimerTete(guichet);
}
|