Herowaree

Pilha_enc.h

Nov 23rd, 2014
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. #ifndef PILHA_ENC_H_INCLUDED
  2. #define PILHA_ENC_H_INCLUDED
  3.  
  4. struct No{
  5. int dado;
  6. struct No *proximo;
  7. };
  8.  
  9. struct Pilha{
  10. int tamanho;
  11. struct No *cabeca;
  12. };
  13.  
  14. extern void iniciaPilha(struct Pilha *pilha);
  15. extern int tamanhoPilha(struct Pilha *pilha);
  16. extern int vaziaPilha(struct Pilha *pilha);
  17. extern int topoPilha(struct Pilha *pilha);
  18. extern int push(struct Pilha *pilha, int valor);
  19. extern int pop(struct Pilha *pilha, int *valor);
  20. extern int mostrarPilha(struct Pilha *pilha);
  21. extern int comparaPilha(struct Pilha *pilha, struct Pilha *pilha_2);
  22. extern int invertePilha(struct Pilha *pilha);
  23. extern void destruirPilha(struct Pilha *pilha);
  24. extern int removeValor(struct Pilha *pilha, int valor);
  25.  
  26. #endif // PILHA_ENC_H_INCLUDED
Advertisement
Add Comment
Please, Sign In to add comment