You want to create a simple task queue where tasks are processed in the order they are added. Complete the below code in C++ to achieve the desired results.
Basic algorithms of STL
Task queue
Report a typo
Fill in the gaps with the relevant elements
#include <iostream>
#include <queue>
int main() {
<std::string> taskQueue;
taskQueue.push("Task 1");
taskQueue.push("Task 2");
taskQueue.push("Task 3");
while (!taskQueue.) {
std::cout << "Processing: " << << std::endl;
;
}
return 0;
}Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.