#include #include using namespace std; #include "PilaTDAListasS.hpp" main() { int op; int valor,nuevo, extraido, consultado; tpila pila; iniciar_pila(pila); cout << "LISTA INICIALIZADA"<> op; switch (op) { case 1: cout << "Ingrese el valor que desea agregar: "; cin >> nuevo; agregar_pila(pila,nuevo); break; case 2: if (pila_vacia(pila)!=true) { extraido=quitar_pila(pila); cout << "Valor extraido: " << extraido << endl; } else cout << "PILA VACIA" << endl; break; case 3: if (pila_vacia(pila)!=true) {consultado=tope_pila(pila); cout << "Valor en la cima de la pila: " << consultado << endl; } else cout << "PILA VACIA" << endl; break; case 4: cout << "FIN DEL PROGRAMA" << endl; break; default: cout << "ERROR DE OPCION" << endl; } system("pause"); }while (op!=4); }