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 // PRINCIPAL .C<br />

2 # inclu<strong>de</strong> " lista .h"<br />

3 # inclu<strong>de</strong> " filas .h"<br />

4 # inclu<strong>de</strong> " pilha .h"<br />

5 # inclu<strong>de</strong> " menu .h"<br />

6<br />

7 int main ( void )<br />

8 {<br />

9 Tipo_Lista a; Tipo_Pilha b; Tipo_Fila c;<br />

10<br />

11 inicializa_lista (&a);<br />

12 inicializa_pilha (&b);<br />

13 inicializa_fila (&c);<br />

14<br />

15 mostra_menu (" Operacoes com listas ");<br />

16 insere_lista (&a, 123) ;<br />

17 insere_lista (&a, 23) ;<br />

18 insere_lista (&a, 435) ;<br />

19<br />

20 insere_pilha (&b, 234) ;<br />

21 mostra_lista (a);<br />

22 return 0;<br />

23 }<br />

✝ ✆<br />

Código:principal.c<br />

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

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

Saved successfully!

Ooh no, something went wrong!