Advertisement
Guest User

pilha.h

a guest
May 22nd, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #ifndef PILHA_H_
  2. #define PILHA_H_
  3.  
  4. #define MAX 100
  5.  
  6. typedef struct pilha {
  7. char elementos[MAX];
  8. int topo;
  9. } Pilha;
  10.  
  11. Pilha *create(); //cria pilha
  12. char pop(Pilha *p); //desempilha
  13. int push(Pilha *p, char c); //empilha
  14. int isEmpty(Pilha *p); //verifica pilha vazia
  15. int isFull(Pilha *p); //verifica pilha cheia
  16. int size(Pilha *p); //verifica tamanho da pilha
  17.  
  18. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement