Skip to content

Queue, Data Structure

Good Night,

What is Queue? Queue is a data structure used a lot in computers, and it is based on the principle FIFO (First in, first out). It has 2 basic functions, enqueue and denqueue. What is First in, First out? It says that the first element that enter in the data structure is the first to be removed.

The professor told us to solve this:

* Implement all operations about Queue.
* Implement a program that use your Queue. The program must have a menu with: enqueue, dequeue, clean, show queue, exit. Use switch.
* The queue must have max size of 100. As a constant named MAXFILA
* The queue is referenced by a global reference.
* To define it use a type elementoDaFila that will be char[40] and define your queue as a vector of 100 elementoDaFila.

Queue implementation.

Regards,
Matheus

PS: I start translating “all” old posts. Maybe this old ones, don’t have all stuffs translated (like attachments in this one)

Published inCEstrutura de Dados

309 Comments

  1. DavidRus DavidRus

    Выезд нарколога начинается с осмотра пациента. Доктора измеряют давление, пульс, оценивают уровень сознания и выраженность симптомов. На основании этих данных формируется план лечения, который реализуется сразу на месте. Такой подход позволяет быстро перейти к стабилизации состояния без лишних этапов.
    Узнать больше – нарколог на дом вывод из запоя в санкт-петербурге

  2. Lavernerep Lavernerep

    Запой сопровождается выраженной интоксикацией, нарушением сна, слабостью, тревожностью и колебаниями давления, что характерно для алкоголизма и других форм зависимости. При этом самостоятельный выход из состояния часто оказывается затруднённым из-за ухудшения самочувствия и невозможности контролировать симптомы. В таких случаях выезд нарколога позволяет начать лечение без задержек и помочь пациенту снизить нагрузку на организм за счёт отсутствия транспортировки.
    Углубиться в тему – нарколог на дом вывод из запоя

Leave a Reply

Your email address will not be published. Required fields are marked *