Ir ao conteúdo

Fila, Estrutura de dados

Boa Noite,

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 é Fila, uma estrutura de dados baseada no principio FIFO (first in, first out) ou seja, primeiro a entrar é o primeiro a sair. Ela, como a pilha possui duas funções básicas, que é adiciona e remove. Uma adicionando no fim, como uma fila (sem furos, é claro!) e a outra retirando do inicio.

Já faz alguns dias que resolvemos esse exercicio e pra ser sincero não tenho certeza se estou postando a ultima versão que tenho do mesmo, mas acredito que sim. O enunciado do exercicio resolvido foi o seguinte:

* Implemente todas as operações vistas sobre fila;
* implemente um programa principal que utilize a fila através de um menu com os seguintes itens: enfileirar, desenfileirar, limpar, mostrar fila, sair do programa. Use a estrutura de programação switch do “C” para isto;
* a fila possuirá tamanho máximo 100, definido como uma constante chamada MAXFILA. Utilize esta constante para a definição da estrutura de dados que será a fila;
* a fila será referenciada por uma variável global;
* para implementar a estrutura de dados defina um tipo elementoDaFila que será char[40] e defina a sua fila como um vetor de 100 elementoDaFila .

Aqui está a implementação da mesma que acredito ser a ultima.

Abraços,
Matheus

PS: Com o tempo eu pretendo (não sei se consigo) fazer algumas mudanças nas mesmas assim que for aprendendo novas tecnicas e conceitos relacionados ao assunto, mas como a faculdade ta muito corrida não sei se vai ser possivel.

Publicado emCEstrutura de Dados

1.104 Comentários

  1. Ребята, выручайте! Кот старый диван в клочья разодрал, надо перетягивать. Ищу, где можно ткань для обивки мебели купить не по космическим ценам. материал для обивки мебели купить материал для обивки мебели купить Говорят, флок и микровелюр быстро вытираются, а рогожка лучше. Нужен метров 15-20, может, кто знает нормального поставщика.

  2. Been there, done that, got the overpriced tow truck receipt to prove it. You find this amazing listing online — gorgeous spec, fair daily rate, looks perfect. Totally different vehicle waiting for you — bald tires, dashboard lit up like a Christmas tree, and that “amazing rate”? Doesn’t include the mandatory $40 daily toll pass or the $350 “premium location” fee they spring on you at the counter. Fool me twelve times? That’s just the 305 way, lesson learned. If you are trying to find a legitimate luxury fleet without getting ripped off, do some real digging first and read actual customer reviews. Miami without real wheels is basically a nightmare, especially since the AC must be ice cold and unlimited miles non-negotiable.

    I’ve tested maybe 65 rental outfits across Dade, Broward, and Monroe, but I eventually found a service where what you book is exactly what shows up, no surprises, no hidden fine print. If you are looking for the only straight shooter for premium rides across South Florida, check the current details here: exotic car rental miami beach fl exotic car rental miami beach fl. Yeah, parking in Brickell will cost you a nice dinner — but that’s the price of paradise. Just drive safe out there and absolutely skip that “windshield protection” upsell — complete waste of money. let me know if you guys have any other clean spots.

  3. Alright listen up because I’m about to save you a massive headache. Then you actually show up to the local office to pick up the car. Totally different vehicle waiting for you — bald tires, dashboard lit up like a Christmas tree, and that “amazing rate”? Doesn’t include the mandatory $40 daily toll pass or the $350 “premium location” fee they spring on you at the counter. Twelve years in South Florida and these jokers still almost catch me sleeping. If you are trying to find a legitimate luxury fleet without getting ripped off, run far from the airport counters. Anyone who’s waited for an Uber in August heat knows the struggle exactly about this city, especially since the AC must be ice cold and unlimited miles non-negotiable.

    Most of these local agencies are just shiny turds with fake five-star reviews bought in bulk online hiding overpriced junk, but I eventually found a service where what you book is exactly what shows up, no surprises, no hidden fine print. If you are looking for the only straight shooter for premium rides across South Florida, check the current details here: rent luxury sedan rent luxury sedan. Also, definitely bring quality shades unless you enjoy driving into the sun like a zombie every single evening. Anyway, glad there’s at least one honest operator left in this rental jungle, let me know if you guys have any other clean spots.

Deixe um comentário

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