josecarlosgutierrez2002@gmail.com

 avatar
Jose20025
c_cpp
2 years ago
3.9 kB
1
Indexable
Never
#include <iostream>
#include <windows.h>
#include <ctype.h>
using namespace std;

string cartelera[10];
int PELICULA, HORARIO;
int butacas[5][5];

void REGISTRO_CARTELERA();
void HORARIOS();
void menu_cartelera();
void comprar_entradas();
void registro_butacas();

void MENU()
{
    int opc;
    while (opc != 6)
    {
        system("cls");
        cout << "\n-----------------------BIENVENIDO A CINEMA PLUS---------------------------" << endl;
        cout << "1.VER CARTELERA" << endl;
        cout << "2.VER HORARIOS" << endl;
        cout << "3.COMPRAR ENTRADAS" << endl;
        cout << "4.SELECCIONAR BUTACAS" << endl;
        cout << "5.VER REGISTRO DE FACTURA" << endl;
        cout << "6.SALIR" << endl;
        cout << "OPCION:" << endl;
        cin >> opc;

        switch (opc)
        {
            char NOMBRE, NIT;

        case 1:
            menu_cartelera();
            break;
        case 2:
            HORARIOS();
            break;
        case 3:
        {
            cout << "Hola, sexo?: " << endl;
            cin >> NOMBRE;
            cout << "DIGITE NUMERO DE NIT:" << endl;
            cin >> NIT;
            cout << "DIGITE EL NUMERO DE LA PELICULA: ";
            cin >> PELICULA;
            cout << "DIGITE EL NUMERO DEL HORARIO (1-3): ";
            cin >> HORARIO;

            break;
        }
        case 4:

            break;

        case 5:

            break;
        }
    } // fin del while
}

void REGISTRO_CARTELERA()
{
    cartelera[0] = "The Notebook";
    cartelera[1] = "El Espacio Entre Nosotros";
    cartelera[2] = "Riesgo Bajo Cero";
    cartelera[3] = "KingsMan";
    cartelera[4] = "Venom Carnage Liberado";
    cartelera[5] = "Interestellar";
    cartelera[6] = "Apolo 13";
    cartelera[7] = "La Teoria del Todo";
    cartelera[8] = "Gravity";
    cartelera[9] = "La duda de Darwin";
}

void HORARIOS()
{
    cout << "-----------------HORARIOS CINEMA PLUS-----------------" << endl;
    cout << "1.The notebook " << endl;
    cout << "1. 15:00 - 17:00 -- 2. 18:00 - 19:30 -- 3. 20:00 - 21:30";
    cout << endl;
    cout << "2.El espacio entre nosotros" << endl;
    cout << "1. 12:00-14:00 -- 2. 15:00-16:30 -- 3. 20:00-21:30";
    cout << "003.Riesgo bajo cero" << endl;
    cout << "1. 15:00-17:00 -- 2. 18:00-19:30 -- 3. 20:00-21:30" << endl;
    cout << endl;
    cout << "4.Kings Man" << endl;
    cout << "1. 15:00-17:00 -- 2. 18:00-19:30 -- 3. 20:00-21:30" << endl;
    cout << endl;
    cout << "5.Venom Carnage Liberado" << endl;
    cout << "1. 15:00-17:00 -- 2. 18:00-19:30 -- 3. 20:00-21:30" << endl;
    cout << endl;
    cout << "6.Interestellar" << endl;
    cout << "1. 12:00-14:00 -- 2. 15:00-16:30 -- 3. 20:00-21:30" << endl;
    cout << endl;
    cout << "7.Apolo 13" << endl;
    cout << "1. 15:00-17:00 -- 2. 18:00-19:30 -- 3. 20:00-21:30" << endl;
    cout << endl;
    cout << "8.La teoria del todo" << endl;
    cout << "1. 12:00-14:00 -- 2. 15:00-16:30 -- 3. 20:00-21:30" << endl;
    cout << endl;
    cout << "9.Gravity" << endl;
    cout << "1. 15:00-17:00 -- 2. 18:00-19:30 -- 3. 20:00-21:30" << endl;
    cout << endl;
    cout << "10.La duda de Darwin" << endl;
    cout << "1. 12:00-14:00 -- 2. 15:00-16:30 -- 3. 20:00-21:30" << endl;
    MENU();
    system("Color 5 ");
}

int main()
{
    REGISTRO_CARTELERA();
    registro_butacas();

    MENU();

    return 0;
}

void menu_cartelera()
{
    system("cls");
    cout << "-----------------CARTELERA CINEMA PLUS-----------------" << endl;
    for (int i = 0; i < 10; i++)
    {
        cout << i + 1 << ". " << cartelera[i] << endl;
    }
    system("pause");
}

void comprar_entradas()
{
}

void registro_butacas()
{
    for (int i = 0; i < 5; i++)
    {
        for (int j = 0; j < 5; j++)
        {
            matriz[i][j] = 0;
        }
    }
}