Algoritmos e Estruturas de dados - Bibliotecas - UTFPR
Algoritmos e Estruturas de dados - Bibliotecas - UTFPR
Algoritmos e Estruturas de dados - Bibliotecas - UTFPR
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
✞<br />
1 // FILAS .H<br />
2 # ifn<strong>de</strong>f _FILAS_<br />
3 # <strong>de</strong>fine _FILAS_<br />
4<br />
5 # inclu<strong>de</strong> <br />
6 # inclu<strong>de</strong> < stdlib .h><br />
7<br />
8 # <strong>de</strong>fine VERDADE 1<br />
9 # <strong>de</strong>fine FALSO 0<br />
10<br />
11<br />
12 type<strong>de</strong>f struct {<br />
13 struct tipo_elemento * inicio ;<br />
14 struct tipo_elemento * fim ;<br />
15 int qtd ;<br />
16 } Tipo_Fila ;<br />
17<br />
18 void inicializa_fila ( Tipo_Fila *f);<br />
19 void insere_fila ( Tipo_Fila *d, int x);<br />
20 int retira_fila ( Tipo_Fila *f);<br />
21 int eh_vazia_fila ( Tipo_Fila f);<br />
22<br />
23 # endif<br />
✝ ✆<br />
Código:filas.h Código:filas.c<br />
(<strong>Bibliotecas</strong>) 13 / 18