20.12.2022 Views

ED21 - Unidad III - TDA Pila (1)

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

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

Implementación Modificada (2)

TDA Pila modificado

const int MAX=10;

typedef int tpila[MAX];

Reservado

como

indicador

de la pila

Operaciones modificadas: iniciar_pila

void iniciar_pila (tpila &p)

{

p[MAX-1]-1;

}

Reservado

para datos

ANALISTA PROGRAMADOR UNIVERSITARIO

ING. PÉREZ IBARRA

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

Saved successfully!

Ooh no, something went wrong!