13.12.2012 Views

Algoritmos e Estruturas de dados - Bibliotecas - UTFPR

Algoritmos e Estruturas de dados - Bibliotecas - UTFPR

Algoritmos e Estruturas de dados - Bibliotecas - UTFPR

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

✞<br />

1 // PILHA .H<br />

2 # ifn<strong>de</strong>f _PILHA_<br />

3 # <strong>de</strong>fine _PILHA_<br />

4<br />

5 # inclu<strong>de</strong> <br />

6 # inclu<strong>de</strong> < stdlib .h><br />

7<br />

8 type<strong>de</strong>f struct {<br />

9 struct tipo_elemento * topo ;<br />

10 int qtd ;<br />

11 } Tipo_Pilha ;<br />

12<br />

13<br />

14 void inicializa_pilha ( Tipo_Pilha *p);<br />

15 void insere_pilha ( Tipo_Pilha *p, int v);<br />

16 int remove_pilha ( Tipo_Pilha *p);<br />

17 int eh_vazia_pilha ( Tipo_Pilha p);<br />

18<br />

19 # endif<br />

✝ ✆<br />

Código:pilha.h Código:pilha.c<br />

(<strong>Bibliotecas</strong>) 12 / 18

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!