In C++ pleaseeee
You are given:
MainDLL.cpp: the main function
TaskManager.cpp/.hpp: the interface for the task manager, which uses the doubly linked list
Task.cpp/.hpp: the declarations and definitions for the Task class, the data type stored in our Task Manager
DNode.hpp: the class declaration for the DNode class
DNode.cpp: a shell for the DNode class definitions
DLL.hpp: the class declaration for the doubly linked list class
DLL.cpp: a shell for the DLL class definitions
Additionally, you are given 2 example input files of tasks to test with. You'll want to place these files in the same folder as the rest of the code (but they do not get added to the build target, that's just for compilation). It's a lot easier to read long lists of inputs from a file than having the user type them out every time. The TaskManager class handles the file input for you. Modify MainDLL.cpp to change the file.
You will need to write:
Constructor definitions for the DNode class: 5pts
Method definitions for the DLL class:
- 2 constructors: 7pts
- void push(string, int, int, int): 5pts
- Task *pop(): 5pts
- int remove(int): 10pts
- void moveUp(int): 10pts
- void moveDown(int): 10pts
- void changePriority(int, int): 10pts
- void listDuration(int*, int*, int): 5pts
- void printList(): 4pts
- void printList(int): 5pts
- void addTime(int, int): 2pts
- void removeTime(int, int): 2pts
Destructor: 7pts