

Prepara tus exámenes y mejora tus resultados gracias a la gran cantidad de recursos disponibles en Docsity
Gana puntos ayudando a otros estudiantes o consíguelos activando un Plan Premium
Esta página no es visible en la vista previa
¡No te pierdas las partes importantes!


#include
Identificaciones.push_back(identificacion); cout << endl << identificacion; } void Mostrar_Producto(const string& identificacion) { int indice = -1; for (int i = 0; i < Identificaciones.size(); ++i) { if (Identificaciones[i] == identificacion) { indice = i; break; } } if (indice != -1) { cout << "Fecha de ingreso: " << Fechas_Ingreso[indice] << endl; cout << "Fecha de salida: " << Fechas_Salida[indice] << endl; cout << "Tipo: " << Tipos[indice] << endl; cout << "Nombre: " << Nombres[indice] << endl; } else { cout << "No se encontró ningún producto con la identificación proporcionada." << endl; } } void Menu_Principal(){ do { cout << "\n ======================== INVENTARIO =========================== \n" << endl; cout << "[1]. Ingresar producto \n" << endl; cout << "[2]. Mostrar producto \n" << endl; cout << "[3]. Salir \n" << endl; cout << "\n =============================================================== \n" << endl; cout << "Ingrese una opción [1] o [2] o [3]: "; cin >> opcion; switch (opcion) { case 1:{ Reguistrar_Producto(); Generar_Identificacion(); cout << "Producto ingresado correctamente." << endl; break; } case 2:{ string identificacion; cout << "Ingrese la identificación del producto: "; cin >> identificacion; Mostrar_Producto(identificacion); break; } case 3:{