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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Punteros</strong> y <strong>Datos</strong> Dinámicos en Ada<br />

• Declaración <strong>de</strong> tipos<br />

OPCIÓN 1:<br />

type celda is<br />

record<br />

valor: integer;<br />

siguiente: enlace; -- enlace sin <strong>de</strong>finir<br />

end record;<br />

type enlace is access celda;<br />

OPCIÓN 2:<br />

type enlace is access celda;--celda sin <strong>de</strong>finir<br />

type celda is<br />

record<br />

valor: integer;<br />

siguiente: enlace;<br />

end record;<br />

En ADA, se <strong>de</strong>clara un tipo<br />

puntero para acce<strong>de</strong>r a datos<br />

<strong>de</strong> un <strong>de</strong>terminado tipo

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

Saved successfully!

Ooh no, something went wrong!