C++ Data Structure
Здраствуйте, необходимо сегодня до 17 00 по Киеву сделать 2 задания для теста по Data Structure.
Implement an unbounded Queue (a First-In-First-Out structure using sequential memory storage) as a template structure (aimed at storing values of any type), and the methods operating on this structure (not more than listed below; it is allowed to omit these which are not used in the program one submits):
the default constructor,
the destructor,
the copy-constructor,
the comparison operator==,
push – adding a value to the queue,
pop – removing the first value from the queue or throwing an empty queue exception,
removeGreater – removing from the queue all the values greater than the one given as the parameter,
front – returning the first value or throwing an empty queue exception,
back – returning the last value or throwing an empty queue exception,
empty – informing whether the queue is empty,
print – printing all the items from the queue.
Implement a structure of a Task with a description, a project name and a duration (in hours), the default constructor, proper setters and gettters for the attributes and all the operators necessary to complete the further part of the task.
Write a program which implements operations on schedules being queues of Task structures. Use the Queue structure to create schedules for two employees.
Allow the user to choose among the following operations:
add a new task (with attributes given by the user) at the end of chosen schedule,
print the description and the duration of the first task in the chosen schedule (or print a message if the schedule is empty),
compare both schedules if they are the same or not (contain the same tasks),
[*] print all the data of all the tasks of the chosen schedule (using the print method of the schedule),
[*] move the first task from the beginnig of one schedule to the end of another, but only if the last task in the target schedule belongs to the same project as the one to be moved (or print a message),
[**] remove from the chosen schedule all the tasks longer than the value given by the user,
[**] copy all the tasks from one schedule to the end of another (preserving their original order, the source schedule remains unchanged).
Актуальные фриланс-проекты в категории C и C++
Инженер по инфраструктуре резидентных проксиМы строим сеть резидентных прокси с нуля — полностью собственную, без сторонних поставщиков. Нам нужен один исключительный сетевой инженер для создания всей технической базы. Что вы будете строить: - Android SDK для фонового использования, который направляет прокси-трафик через… C и C++, DevOps ∙ 2 дня 22 часа назад ∙ 12 ставок |
Добробка в существующей версии 1с розница блока для РЦ(распределительного центра)В общем поясню, что у нас за база - есть общий сервер, где есть база Розница (где ставятся все приходы) - база УТП, куда переливаются все продажи - считается наценка, остатки по складам - маленькие базы розничных магазинов. По обменам у нас магазины обмениваются с базой Розница… C и C++, C# ∙ 3 дня 13 часов назад ∙ 6 ставок |
ПО Мастер-программа «KONSTRUCTOR»
185 977 UAH
Мы ищем очень опытного C++ разработчика для модернизации существующего ПО (мастер-программы). Программа отвечает за создание производного ПО представляющего аудио-визуальные сеансы психологической коррекции. Текущая версия написана на чистом WinAPI (Visual Studio 2019/2022).… C и C++, Десктопные приложения ∙ 8 дней 16 часов назад ∙ 19 ставок |
Написание кода для ArduinoНеобходимо разработать программное обеспечение для весового дозатора на базе Arduino Uno. Комплектующие: Arduino Uno R3 HX711 + тензодатчик LCD1602 I2C дисплей MAX7219 светодиодная матрица 8x32 5 кнопок управления 4-канальное реле 2 сигнальные лампы Вибромагнит грубого… C и C++, Встраиваемые системы и микроконтроллеры ∙ 10 дней 1 час назад ∙ 15 ставок |
Нужно доработать проект или предоставить консультацию.
1000 UAH
|