Question: void wash ( linkedQueueType > & Q ) { if ( Q . isEmpty ( ) ) { std::cout < < There is nothing to

void wash(linkedQueueType>& Q){
if (Q.isEmpty()){
std::cout << "There is nothing to wash!! Have a nap, or start marketing!!" << std::endl;
} else {
stackType &firstStack = Q.front();
if (firstStack.size()<5){
std::cout << "The only batch is not full, let us wait!" << std::endl;
} else {
while (!firstStack.isEmpty()){
clothing item = firstStack.top();
std::cout << "Washing clothing id: "<< item.id <<", owner: "<< item.owner <<", cost: \$"<< item.cost << std::endl;
firstStack.pop();
}
Q.deleteQueue();
}
}
},,,,, there is an error in line 5 in function wash can you solve it?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!