SHARE
TWEET

pilha.h

a guest May 22nd, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top