Advertisement
Guest User

Untitled

a guest
Jan 17th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #ifndef PILE_H_
  2. #define PILE_H_
  3.  
  4. typedef struct noeud noeud;
  5.  
  6. struct noeud {
  7. char cle;
  8. noeud *suivant;
  9. };
  10.  
  11. struct pile {
  12. noeud *debut;
  13. noeud *fin;
  14. };
  15.  
  16. typedef struct pile pile;
  17.  
  18. pile * creerPile(void);
  19. int pileVide(pile *);
  20. void empiler(char, pile *);
  21. char depiler(pile *); // clé du noeud supprimé
  22. void libererPile(pile *);
  23. void afficher(pile *); // sous la forme debut>L>I>fin
  24.  
  25. #endif /* PILE_H_ */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement