Ir ao conteúdo

Lista, Estrutura de dados

Boa tarde,

Como estou tendo aula de estrutura de dados estou tentando colocar aqui, alguns dos conceitos que aprendemos em sala, junto ao seu exercicio e uma implementação de um exercicio (desenvolvido rapidamente, muitas vezes). A estrutura apresentada hoje é Lista, uma estrutura de dados linear. Existe também a lista ligada, ou encadeada que também é conhecida por linear e dinamica (fica pra outro post) e a lista duplamente ligada, ou duplamente encadeada (fica pra outro post também). A pilha e a fila são implementações especiais de listas. A Lista, não possue restrições como suas implementações especiais, e pode receber elementos em qualquer posição, remover de qualquer posição, remover especifico, adicionar em ordem entre outras.

O enunciado do exercicio que foi proposto para lista é o seguinte:

1. Crie o seu tipo de dados tLista em um headerfile;
2. esta deverá ser uma lista de elementos do tipo tAgenda;
3. O tipo tAgenda é um tipo que representa um nome de 30 posições e um número de telefone;
4. crie uma função maior(a,b) que compare os nomes de duas entradas;
5. programe todas as funções documentando cada função, inclusive com dicionário de dados;
6. crie um programa principal que execute todas as funções de lista a partir de um menu. A função procurar específico deverá basear-se no nome em uma Agenda;
7. além dessas funções, o programa deverá ser capaz de listar a lista em ordem alfabética.

Resolução do mesmo aqui.

Até mais,
Matheus

Publicado emCEstrutura de Dados

17.805 Comentários

  1. I’ve been playing at Tenobet since maybe four months now, usually the slots plus the odd accumulator action come Saturday. Not gonna lie, I got there via a mate wouldn’t shut up about it, so I went in fairly sceptical.\n\nGame selection is better than I expected — I reckon about 3,000 titles across all the categories. All the big studios are in: Pragmatic Play, NetEnt, Microgaming, Yggdrasil. I live on Gates of Olympus and Sweet Bonanza, though Bonanza Megaways eats my balance faster. Live side is Evolution, so no complaints there — real croupiers, roulette round the clock, plus Crazy Time and Lightning Roulette.\n\nThe sign-up offer with Tenobet is up to ?125 matched plus a batch of bonus spins, and the wagering was 35x which is fair enough. There’s no no deposit freebie unless I missed it, you need a tenner minimum. If you want the current terms have a look at tenobet sport rather than trusting my memory. My gripe: the spins expire in 7 days and I lost half of mine to being busy.\n\nWithdrawals are the bit I actually care about. Skrill came back in under 24 hours for me, debit card was closer to three days, which is just how cards are. You also get Neteller, Visa and some crypto options, though I haven’t bothered with Bitcoin. KYC was a bit of a faff — driving licence and a bank statement, cleared overnight.\n\nThere’s no standalone app that I found, it’s a browser version which honestly works — I use it more than desktop now. Live chat at Tenobet took a few minutes when I asked about a stuck bonus, human, not a bot loop. Licensed and regulated for UK players, which is why I stuck around.

  2. kl kl

    En caso de que tengas que retirar uralita de tu casa, es importante que tengas en cuenta algunas consideraciones clave. Primero, debes saber que el RD 396 2006 establece las normas para la retirada de amianto. Esto implica que el proceso debe ser realizado por profesionales certificados. Además, el coste de quitar uralita precio m2 suele depender del área a tratar. Si estás buscando información más detallada, te recomiendo que consultes ayudas retirada amianto http://retirar-uralita-precio-pus.es/, donde encontrarás todo lo necesario para tomar la mejor decisión. También es posible que existan ayudas para la retirada de amianto en tu región y así reducir los costes. No olvides que la seguridad es lo primero.

  3. Каждый из этих симптомов по отдельности уже опасен, а в сочетании они создают высокий риск для жизни. Самостоятельные эксперименты с таблетками, резкий отказ от алкоголя «через силу» или попытка «переспать» запой без медицинского контроля могут обернуться реанимацией. Гораздо безопаснее вовремя вызвать специалиста и провести детоксикацию под наблюдением, особенно когда речь идёт о жителях крупного города, где доступна профессиональная наркологическая помощь.
    Изучить вопрос глубже – вывод из запоя москва вызов нарколога на дом

  4. Sa Sa

    Недавно столкнулся с вопросом оформления визы в Таиланд и наткнулся на сайт dtv-visa-thailand.ru. На сайте всё подробно описано — от требований до подачи документов. Особенно удобно, что можно оформить визу под ключ, не тратя время на самостоятельные разборы. Если вы ищете простой способ оформить визу цифрового кочевника, рекомендую посмотреть виза цифрового кочевника тайланд https://dtv-visa-thailand.ru — там всё понятно и доступно. Всем советую dtv-visa-thailand.ru для быстрого оформления визы в Таиланд.

Deixe um comentário

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *