Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef __PILHA_H__
- #define __PILHA_H__
- typedef struct elemento{
- struct elemento* prox;
- int dado;
- }t_ele;
- typedef struct {
- t_ele* topo;
- }t_pilha;
- t_pilha* aloca_pilha();
- void push(t_pilha* pilha, int valor);
- int pop(t_pilha* pilha);
- int get_topo(t_pilha* pilha);
- int pilha_vazia(t_pilha* pilha);
- int tam_pilha(t_pilha* pilha);
- void print_pilha(t_pilha* pilha)
- #endif
Add Comment
Please, Sign In to add comment