Herowaree

Pilha_Sequencial.h

Nov 19th, 2014
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. #ifndef PILHA_SEC_H_INCLUDED
  2. #define PILHA_SEC_H_INCLUDED
  3. #define MAX 100
  4.  
  5. struct Pilha{
  6. int vetor[MAX];
  7. int topo;
  8. };
  9.  
  10. extern void iniciaPilha(struct Pilha *pilha);
  11. extern int vaziaPilha(struct Pilha *pilha);
  12. extern int cheiaPilha(struct Pilha *pilha);
  13. extern int tamanhoPilha(struct Pilha *pilha);
  14. extern int push(struct Pilha *pilha, int valor);
  15. extern int pop(struct Pilha *pilha, int *dado);
  16. extern int topoPilha(struct Pilha *pilha, int *dado);
  17. extern int mostrarPilha(struct Pilha *pilha);
  18. extern int comparaPilha(struct Pilha *pilha, struct Pilha *pilha_2);
  19. extern int invertePilha(struct Pilha *pilha);
  20.  
  21. #endif // PILHA_SEC_H_INCLUDED
Advertisement
Add Comment
Please, Sign In to add comment