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.816 Comentários

  1. Android cihazım için kaliteli bir uygulama bulmak şarttı. Play Store’da arattım ama son sürümü göremedim. Güncel bilgileri kontrol edip süreci hatasız başlattım. En sonunda güvenilir bir kaynağa ulaştım ve size de tüm detayları aktarmak istedim, güncel bilgilere buradan bakabilirsiniz: 1xbet download android 1xbet download android. Şimdi size kısaca özet geçeyim — mobil versiyonu masaüstüyle yarışır kalitede kesinlikle.

    Hiçbir donma yaşamadım şu ana kadar. Birçok apk denedim ama en stabilı bu çıktı — kesinlikle pişman olmazsınız deneyin derim. Herkese hayırlı olsun…

  2. Let me save you some serious time, learned this the hard way. Miami rental game is wild — half these local clowns show you a custom Mercedes online and hand you a busted sedan with mismatched tires. Plus the fine print says you can’t even drive outside the city limits without extra fees. No thanks, I’m way too old for this nonsense. When you genuinely need a proper and reliable premium ride to cruise around, skip the airport counters entirely. Miami without a decent whip is basically a punishment, whether you are doing Coral Gables brunch, South Beach night run, or a spontaneous Everglades detour.

    Most of these local agencies are just polished websites hiding the same overpriced junk, but I eventually found a service where what you book is exactly what you get, period. If you are looking for the only straight-up source for premium wheels in South Florida, check the current details here: car rental premium class car rental premium class. Yeah, parking in Brickell will cost you a small mortgage — but that’s city life. Just drive safe out there and maybe pass on that overpriced roadside assistance add-on. let me know if you guys have any other clean spots.

  3. Let me save you some serious time, learned this the hard way. You find a killer deal online — photos look pristine, price seems fair, terms almost reasonable. Different vehicle parked outside, curb rash on every rim, and that “all-inclusive rate”? Ha, doesn’t include the mandatory $300 cleaning fee or the $25 per day toll pass you can’t decline. Living here six years and still almost fall for this stuff sometimes. If you are trying to find a legitimate vehicle without getting ripped off, do some real digging first and read actual customer reviews. Anyone who’s tried the bus here knows exactly what I mean about this city, especially since the AC must be arctic and unlimited miles non-negotiable.

    I’ve personally tested maybe 35 rental outfits across Dade, Broward, and Monroe, but I eventually found a service where what you reserve is exactly what rolls up, no surprises. If you are looking for the only trustworthy source for premium vehicles across South Florida, check the current details here: exotic car rental miami florida [url=https://luxury-car-rental-miami-6.com]exotic car rental miami florida[/url]. Yeah, parking in South Beach will cost you a nice dinner — but that’s the price of admission. Just drive safe out there and definitely skip that “damage waiver” upsell — total scam 99% of the time. let me know if you guys have any other clean spots.

  4. Знаете, бывает ситуация — близкий в тяжелом состоянии, а везти в клинику страшно . Я через это прошел совсем недавно. Сидишь, не знаешь что делать . Начинаешь обзванивать знакомых, а в ответ тишина . Пока кто-то не посоветовал один проверенный вариант. Требуется срочная помощь — а ехать куда-то нет никакой возможности , то выход один . Речь про круглосуточный выезд нарколога. У нас в столице, если честно, тоже полно левых контор без лицензии. Вся проверенная информация ниже по ссылке: вызов врача на дом нарколога вызов врача на дом нарколога Честно скажу , после того как ознакомился с условиями, многое стало на свои места . И про снятие запоя на дому, и про последующее кодирование. И цены адекватные, без разводов на месте. Рекомендую не тянуть резину .

  5. Вот реально ситуация — отец или муж уходит в запой , а просто в тупике. Моя семья с таким столкнулась недавно. Думали, уговорами поможем — хрен там было. Как показала практика, без врачей и нормального наблюдения не обойтись. Обзвонил все конторы в городе — сплошной развод . Пока нашёл один проверенный вариант. Кому нужно помещение в клинику для вывода из запоя — не ведитесь на дешёвые акции . У нас в Нижнем, кстати , тоже полно левых контор без лицензии. Вся проверенная информация вот тут : вывод из запоя нижний новгород вывод из запоя нижний новгород Честно скажу , после того как почитал , расставил всё по полочкам. Там и про кодирование от алкоголизма подробно расписано , и про условия в стационаре и питание. И цены адекватные, без разводов. Рекомендую не тянуть .

  6. Let me save you some serious time, learned this the hard way. You spot a sweet deal online: shiny Mercedes, low daily rate, looks perfect. Completely different car waiting for you, check engine light on, and that “low rate”? Doesn’t include the mandatory insurance they somehow forgot to mention. Seven years in South Florida and I still almost fall for these tricks. If you are trying to find a legitimate luxury fleet without getting ripped off, avoid the airport like the plague. Anyone who’s taken the Metro here knows the struggle about this city, whether you are doing Brickell happy hour, Bal Harbour shopping, or a spontaneous drive down to the Keys.

    I’ve tried maybe 40 rental companies across Dade, Broward, and Palm Beach, but I eventually found a service with no games, no bait-and-switch, and no hidden asterisks in paragraph 8. If you are looking for the only straight shooter for premium rides across South Florida, check the current details here: opf luxury car rental opf luxury car rental. Yeah, parking in Brickell will cost you a nice steak dinner — but that’s just Miami life. Just drive safe out there and definitely pass on that “tire protection” upsell — total garbage. hope this helps some of you save a few bucks.

  7. Ситуация форс-мажор — родственник в тяжелом запое , а везти в больницу страшно . Я сам через это прошел года два назад . Сидишь, не знаешь за что хвататься . Начинаешь обзванивать знакомых , а вокруг сплошной развод. Пока случайно не нашел один реально работающий вариант. Если нужна срочная помощь — а самому везти нет физической возможности , то нужно вызывать врача. Речь конкретно про нарколога на дом . У нас в столице, к слову , тоже полно левых контор без лицензии. Нормальные контакты, кто реально приезжает вот тут : нарколог на дому капельница нарколог на дому капельница Честно говоря , после того как прочитал , многое прояснилось . Там и про капельницы подробно , и про последующее кодирование. Плюс анонимность — это важно . Советую не тянуть .

  8. Вот такая история — близкий подсел на иглу, а что делать — непонятно . Я через это прошел несколько лет назад. Многие думают, что само пройдет , но нет . Нужна профессиональная помощь . Перерыл весь интернет — только деньги тянут. А потом наткнулся на один действительно рабочий вариант. Нужна лечение наркомании в Воронеже — не ведись на дешевые акции . В Воронеже , кстати , хватает шарлатанов . Вся проверенная информация тут : анонимная наркологическая клиника https://narkologicheskaya-pomoshh-voronezh-11.ru Честно скажу , после того как ознакомился, понял свои ошибки. Там и про вывод из запоя , и про реабилитацию . Плюс работают круглосуточно — это важно . Рекомендую не откладывать.

  9. Ребята, выручайте! Решил обновить кухонный уголок, а старую обивку уже не найти. Теперь мучаюсь — какую взять ткань для мебели, чтобы и выглядело достойно, и кошачьи когти выдержало. обивочные ткани купить https://tkan-dlya-mebeli-1.ru Интересно про ткань для обивки мебели — какой вариант самый практичный для дивана, где постоянно лежат с чипсами. Нужен метров 15-20, может, кто знает нормального поставщика.

  10. Знаете, ситуация — родственник подсел , а что делать — совсем не знаешь . Моя семья такое пережила пару лет назад . Сначала кажется, что обойдется , но хрен там. Нужна реальная медицина. Обзвонил десяток контор — только деньги тянут. Пока не нашел один действительно рабочий вариант. Нужна срочно анонимное лечение алкоголиков — не ведись на дешевые акции . В Воронеже , если честно, хватает левых контор без лицензии. Вся проверенная информация ниже по ссылке: наркологический центр частная скорая помощь https://narkologicheskaya-pomoshh-voronezh-12.ru Откровенно говоря, после того как ознакомился, понял свои ошибки. И про кодирование, и про реабилитацию . Плюс работают круглосуточно — это важно . Советую не тянуть .

  11. Случается, когда уже не до раздумий — человек в запое , а что делать — совсем не знаешь . Я сам через это прошел недавно. Сначала кажется, что обойдется , но хрен там. Требуется реальная медицина. Обзвонил десяток контор — только деньги тянут. Пока не нашел один действительно рабочий вариант. Нужна срочно лечение наркомании в Воронеже — не рискуй здоровьем близкого. У нас в Воронеже, если честно, тоже полно левых контор без лицензии. Вся проверенная информация тут : наркологическая помощь наркологическая помощь Честно скажу , после того как прочитал , понял свои ошибки. Там и про вывод из запоя , и про реабилитацию . И цены адекватные. Советую не откладывать.

  12. Let me save you some serious time, learned this the hard way. You see a sweet ride online — clean spec, fair price, looks legit. Plus they want a surprise $2000 hold on your debit card right before giving you the keys. Fool me five times? Actually yeah, Miami keeps fooling everyone, lesson learned. If you are trying to find a legitimate luxury fleet without getting ripped off, don’t just grab the cheapest option on Kayak. Miami without proper wheels is basically a hostage situation, especially since the AC must freeze your teeth and you want unlimited miles or bust.

    Most of these local agencies are just smoke and mirrors with decent SEO hiding overpriced junk, but I eventually found a service with no games, no bait-and-switch, and no hidden asterisks. If you are looking for the only honest broker for premium vehicles across South Florida, check the current availability here: luxury car rental luxury car rental. Also, definitely bring quality shades unless you enjoy driving into a nuclear flare every single evening. Just drive safe out there and maybe decline that “premium roadside” upsell — it’s always a scam. hope this helps some of you save a few bucks.

  13. Случается сплошь и рядом — родственник в запое , а куда бежать — просто тупик. Я через это прошел несколько лет назад. Многие думают, что само пройдет , но нет . Требуется реальная помощь . Перерыл весь интернет — сплошной развод . А потом наткнулся на один нормальный вариант. Если ищешь где получить круглосуточная наркологическая помощь — не рискуй здоровьем близкого. В Воронеже , кстати , тоже полно левых контор без лицензии. Вся проверенная информация ниже по ссылке: наркодиспансер воронеж https://narkologicheskaya-pomoshh-voronezh-11.ru Честно скажу , после того как прочитал , многое прояснилось . Там и про вывод из запоя , и про условия в клинике. И цены адекватные. Рекомендую не откладывать.

  14. Okay folks gather round — Miami rental horror story time. Then you roll up to the local address to pick up the car. Plus a surprise $3000 hold on your credit card for two weeks right before giving you the keys. Fool me nine times? That’s just the Miami welcome committee, lesson learned. When you’re hunting for a legit and reliable premium ride to cruise around, do some real digging first and read actual customer reviews. Miami without proper wheels is basically a nightmare, whether you are doing Coconut Grove dinner, Sunny Isles sunrise, or a spontaneous drive down to Homestead.

    Most of these local agencies are just polished turds with fake five-star reviews hiding overpriced junk, but I eventually found a service where what you reserve is exactly what you get, period, end of story. If you are looking for the only trustworthy source for premium rides across South Florida, check the current details here: premium car hire https://luxury-car-rental-miami-9.com. Yeah, parking in Wynwood will cost you a nice dinner — but that’s the price of being in Miami. Anyway, glad there’s at least one honest operator left in this rental jungle, hope this helps some of you save a few bucks.

  15. Alright listen up because this Miami rental mess is getting out of hand. Then you actually show up to the local office to pick up the car. Plus they slap a surprise $2500 hold on your card for good measure right before giving you the keys. Living here six years and still almost fall for this stuff sometimes. When you genuinely need a legit and reliable premium ride to cruise around, stay far away from the airport rental center. Anyone who’s tried the bus here knows exactly what I mean about this city, especially since the AC must be arctic and unlimited miles non-negotiable.

    I’ve personally tested maybe 35 rental outfits across Dade, Broward, and Monroe, but I eventually found a service where what you reserve is exactly what rolls up, no surprises. If you are looking for the only trustworthy source for premium vehicles across South Florida, check the current details here: car rentals in miami https://luxury-car-rental-miami-6.com. Yeah, parking in South Beach will cost you a nice dinner — but that’s the price of admission. Anyway, glad there’s at least one honest operator left in this rental jungle, hope this helps some of you save a few bucks.

  16. Ребята, выручайте! Кот старый диван в клочья разодрал, надо перетягивать. Посоветуйте нормальную мебельную ткань для частого использования. мебельные ткани для диванов https://tkan-dlya-mebeli-1.ru А то везде пишут разное, а на деле хочется купить ткань мебельную и забыть на пару лет. Нужен метров 15-20, может, кто знает нормального поставщика.

  17. Let me save you some serious time, learned this the hard way. You see a sweet ride online — clean spec, fair price, looks legit. Different car, scratches all over, and that “all-inclusive” price? Yeah that didn’t include insurance, fees, or the mandatory cleaning charge. Fool me five times? Actually yeah, Miami keeps fooling everyone, lesson learned. When you’re after a trustworthy and reliable premium vehicle to cruise around, don’t just grab the cheapest option on Kayak. Miami without proper wheels is basically a hostage situation, whether you are doing Design District shopping, late-night South Beach cruising, or a spontaneous drive down to Homestead.

    I’ve personally gone through maybe 30 rental companies across Dade, Broward, and Palm Beach, but I eventually found a service with no games, no bait-and-switch, and no hidden asterisks. If you are looking for the only honest broker for premium vehicles across South Florida, check the current availability here: exotic car rental south beach miami https://luxury-car-rental-miami-5.com. Also, definitely bring quality shades unless you enjoy driving into a nuclear flare every single evening. Anyway, glad there’s at least one straight shooter left in this rental jungle, hope this helps some of you save a few bucks.

  18. Случается, когда уже не до раздумий — человек в запое , а что делать — просто руки опускаются. Моя семья такое пережила пару лет назад . Сначала кажется, что обойдется , но нет . Нужна реальная медицина. Обзвонил десяток контор — сплошной развод . Пока не нашел один нормальный вариант. Если ищешь где получить анонимное лечение алкоголиков — не ведись на дешевые акции . У нас в Воронеже, кстати , тоже полно шарлатанов . Вся проверенная информация ниже по ссылке: наркодиспансер воронеж https://narkologicheskaya-pomoshh-voronezh-12.ru Откровенно говоря, после того как прочитал , многое прояснилось . И про кодирование, и про реабилитацию . И цены адекватные. Рекомендую не тянуть .

  19. Let me save you some serious time, learned this the hard way. 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. When you need a proper and reliable premium ride to cruise around, run far from the airport counters. Miami without real wheels is basically a nightmare, 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: mia luxury car rental mia luxury car rental. Yeah, parking in Brickell will cost you a nice dinner — but that’s the price of paradise. 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.

  20. Alright, real talk about the Miami rental game — it’s a straight-up jungle out here. Then you show up at the local lot to pick up the car. Plus they freeze a surprise $2500 on your card for a week right before giving you the keys. Fool me eight times? That’s just another Tuesday in the 305, lesson learned. 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 understands exactly what I mean about this city, especially since the AC must be arctic cold and unlimited miles non-negotiable.

    Most of these local agencies are just shiny websites hiding the same beat-up fleet with fake reviews, until I finally found one outfit that doesn’t play stupid games. If you are looking for the only honest source for premium wheels across South Florida, check the current details here: rolls royce cullinan for rent near me rolls royce cullinan for rent near me. Yeah, parking in South Beach will cost you a nice bottle of wine — but that’s the Miami tax. Anyway, glad there’s at least one straight operator left in this rental circus, hope this helps some of you save a few bucks.

  21. Let me tell you about the Miami rental circus — it’s wild out here. You spot a sweet deal online: shiny Mercedes, low daily rate, looks perfect. Completely different car waiting for you, check engine light on, and that “low rate”? Doesn’t include the mandatory insurance they somehow forgot to mention. Seven years in South Florida and I still almost fall for these tricks. 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 punishment, especially since the AC must freeze your face off and unlimited miles or forget it.

    I’ve tried maybe 40 rental companies across Dade, Broward, and Palm Beach, but I eventually found a service with no games, no bait-and-switch, and no hidden asterisks in paragraph 8. If you are looking for the only straight shooter for premium rides across South Florida, check the current details here: electric vehicle rental luxury https://luxury-car-rental-miami-7.com. Also, definitely bring polarized shades unless you enjoy driving into the apocalypse every single evening. Anyway, glad there’s at least one honest rental joint left in this town, let me know if you guys have any other clean spots.

  22. Вот такая история — близкий подсел на иглу, а куда бежать — просто тупик. Моя семья столкнулась лично . Многие думают, что само пройдет , но хрен там. Нужна профессиональная помощь . Обзвонил десяток контор — только деньги тянут. А потом наткнулся на один действительно рабочий вариант. Если ищешь где получить анонимное лечение алкоголиков — не рискуй здоровьем близкого. У нас в Воронеже, если честно, хватает шарлатанов . Реальные контакты тут : наркологическая клиника воронеж наркологическая клиника воронеж Честно скажу , после того как ознакомился, понял свои ошибки. Там и про вывод из запоя , и про реабилитацию . И цены адекватные. Рекомендую не откладывать.

  23. Вот такая история — человек пропадает , а что делать — просто тупик. Моя семья столкнулась лично . Пьют успокоительное, но нет . Нужна реальная медицина. Перерыл весь интернет — только деньги тянут. А потом наткнулся на один нормальный вариант. Если ищешь где получить лечение наркомании в Воронеже — не ведись на дешевые акции . В Воронеже , кстати , тоже полно шарлатанов . Реальные контакты ниже по ссылке: клиника плюс воронеж клиника плюс воронеж Откровенно говоря, после того как ознакомился, понял свои ошибки. Там и про вывод из запоя , и про условия в клинике. И цены адекватные. Рекомендую не тянуть .

  24. Swear I’ve seen it all by now, the rental landscape down here is crazy. Then you actually show up to the local office to pick up the car. Different vehicle parked outside, curb rash on every rim, and that “all-inclusive rate”? Ha, doesn’t include the mandatory $300 cleaning fee or the $25 per day toll pass you can’t decline. Living here six years and still almost fall for this stuff sometimes. When you genuinely need a legit and reliable premium ride to cruise around, stay far away from the airport rental center. Miami without proper wheels is basically a nightmare, especially since the AC must be arctic and unlimited miles non-negotiable.

    I’ve personally tested maybe 35 rental outfits across Dade, Broward, and Monroe, but I eventually found a service where what you reserve is exactly what rolls up, no surprises. If you are looking for the only trustworthy source for premium vehicles across South Florida, check the current details here: realcar realcar. Yeah, parking in South Beach will cost you a nice dinner — but that’s the price of admission. Just drive safe out there and definitely skip that “damage waiver” upsell — total scam 99% of the time. let me know if you guys have any other clean spots.

  25. Telefonuma güncel sürümü yüklemek istiyordum açıkçası. Play Store’da resmi olanı bulamayınca üzüldüm. Sonunda tüm teknik detayları inceleyip sistemi test ettim. En sonunda sağlam bir kaynağa ulaştım ve size de tüm detayları aktarmak istedim, güncel bilgilere buradan bakabilirsiniz: 1xbet mobile yukle 1xbet mobile yukle. Valla bak net söyleyeyim — mobil uygulaması gerçekten akıcı çalışıyor.

    güncellemeleri de düzenli geliyor. İşin doğrusunu söylemek gerekirse — kesinlikle pişman olmazsınız deneyin derim. Herkese hayırlı olsun…

  26. Ребята, выручайте! Купил кресло б/у, каркас норм, но ткань в ужасном состоянии. Теперь мучаюсь — какую взять ткань для мебели, чтобы и выглядело достойно, и кошачьи когти выдержало. мебельная ткань купить мебельная ткань купить Интересно про ткань для обивки мебели — какой вариант самый практичный для дивана, где постоянно лежат с чипсами. Буду благодарен за любые советы, особенно от тех, кто сам перетягивал.

Deixe um comentário

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