bool EstaCheia(LLS_Pilha p) { if (p.topo == MAX) { return(true); } else { return(false); } }
bool EstaVazia(LLS_Pilha p) { if (p.topo == 0) { return(true); } else { return(false); } }
char Remove(LLS_Pilha p) { p.topo = p.topo - 1; return(p.vetor[p.topo]); }
void Insere(LLS_Pilha p, char valor) { p.vetor[p.topo] = valor; p.topo = p.topo + 1; }