Exemple #1
0
    public void Main(int a)
    {
        LDE <int> TudoLDE = new LDE <int>();

        // 7 Quartos no total apenas o numero 3 disponivel.
        TudoLDE.Inserir(1);
        TudoLDE.Inserir(2);
        // TudoLDE.Inserir(3);
        TudoLDE.Inserir(4);
        TudoLDE.Inserir(5);
        TudoLDE.Inserir(6);
        TudoLDE.Inserir(7);

        int quarto = TudoLDE.Busca();

        if (a == 23425467)
        {
            if (quarto == 0)
            {
                TextoMostrado.text = "Não há vagas";
            }
            else
            {
                TextoMostrado.text = "Quarto numero: " + quarto + " está disponivel.";
            }
        }
    }
    public void Main(int a)
    {
        LDE <int> TudoLDE = new LDE <int>();

        // 7 Vagas disponiveis
        TudoLDE.Inserir(1);
        TudoLDE.Inserir(2);
        // TudoLDE.Inserir(3);
        TudoLDE.Inserir(4);
        TudoLDE.Inserir(5);
        TudoLDE.Inserir(6);
        TudoLDE.Inserir(7);

        int quarto = TudoLDE.Busca();

        if (a == 23425467)
        {
            if (quarto == 0)
            {
                TextoMostrado.text = "Não há vagas";
            }
            else
            {
                TextoMostrado.text = "Vagas Disponiveis: \n\nVagas informadas pela empresa.";
            }
        }
    }
    public void Main(int a)
    {
        LDE <int> TudoLDE = new LDE <int>();

        // 7 Vagas disponiveis
        TudoLDE.Inserir(1);
        TudoLDE.Inserir(2);
        // TudoLDE.Inserir(3);
        TudoLDE.Inserir(4);
        TudoLDE.Inserir(5);
        TudoLDE.Inserir(6);
        TudoLDE.Inserir(7);

        int quarto = TudoLDE.Busca();

        if (a == 23425467)
        {
            if (quarto == 0)
            {
                TextoMostrado.text = "Não há vagas";
            }
            else
            {
                TextoMostrado.text = "Vagas Disponiveis: \n\nFiscal de Caixa. \n\nRepositor de Mercadoria.";
            }
        }
    }