A CLI task scheduler that queues tasks with priority levels and processes them in order using a priority queue from the C++ STL.
Follow these steps in order. Each one builds on the previous.
Define a Task struct with name and priority fields
Write a custom comparator struct for the priority queue
Implement addTask() to push onto the priority queue
Implement runNext() to pop and log the top task
Add a displayQueue() function that copies and drains a temp queue
Build a menu-driven console interface
Test with tasks of varying priorities to verify ordering
Loading...