14.05.2013 Views

Datos Punteros e Implementación Dinámica de Pilas

Datos Punteros e Implementación Dinámica de Pilas

Datos Punteros e Implementación Dinámica de Pilas

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.

procedure liberar(p:in out pila) is<br />

aux:ptDato;<br />

begin<br />

aux:=p.cim;<br />

while aux/=null loop<br />

p.cim:=p.cim.sig;<br />

disponer(aux);<br />

aux:=p.cim;<br />

end loop;<br />

p.alt:=0;<br />

end liberar;

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

Saved successfully!

Ooh no, something went wrong!