Question: void wash ( linkedQueueType > & Q ) { if ( Q . isEmpty ( ) ) { std::cout < < There is nothing to
void washlinkedQueueType& Q
if QisEmpty
std::cout "There is nothing to wash!! Have a nap, or start marketing!!" std::endl;
else
stackType &firstStack Qfront;
if firstStacksize
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;
QdeleteQueue;
there is an error in line 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
