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).
Current freelance projects in the category C & C++
Residential Proxy Infrastructure EngineerWe're building a residential proxy network from scratch — fully owned, no third-party suppliers. We need one exceptional network engineer to build the entire technical foundation. What you'll build: - Android background SDK that routes proxy traffic through user devices… C & C++, DevOps ∙ 3 days 9 hours back ∙ 13 proposals |
Improvement in the existing version of 1C retail block for the distribution center (DC)In general, I will explain what kind of database we have - There is a main server where there is a retail database (where all receipts are recorded) - a UTP database - where all sales are transferred - it calculates the markup and stock balances - small databases of retail… C & C++, C# ∙ 3 days 23 hours back ∙ 6 proposals |
About the Master Program "KONSTRUCTOR"
4182 USD
We are looking for a very experienced C++ developer to modernize existing software (master program). The program is responsible for creating derivative software representing audio-visual sessions of psychological correction. The current version is written in pure WinAPI (Visual… C & C++, Desktop Apps ∙ 9 days 2 hours back ∙ 19 proposals |
Writing code for ArduinoIt is necessary to develop software for a weight dispenser based on Arduino Uno. Components: Arduino Uno R3 HX711 + load cell LCD1602 I2C display MAX7219 LED matrix 8x32 5 control buttons 4-channel relay 2 signal lamps Coarse dosing vibrator Precise dosing vibrator Operation… C & C++, Embedded Systems & Microcontrollers ∙ 10 days 11 hours back ∙ 15 proposals |
It is necessary to complete the project or provide consultation.
23 USD
|