Question: template Type linkedQueueType::front ( ) const { assert ( queueFront ! = NULL ) ; return queueFront - > info; } / / here is
template
Type linkedQueueType::front const
assertqueueFront NULL;
return queueFrontinfo;
here is function front from class linkedQueue
void washlinkedQueueType &Q
if QisEmptyQueue
cout "There is nothing to wash!! Have a nap, or start marketing!!" endl;
else
stackType& firstStack Qfront;
if firstStacksize
cout "The only batch is not full, let us wait!" endl;
else
while firstStack.isEmptyStack
clothing item firstStack.top;
cout "Washing clothing id: item.id owner: item.owner cost: $ item.cost endl;
firstStack.pop;
QdeleteQueue;
and this is another function and there an error on it in this sentence stackType& firstStack Qfront; can you tell me why???
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
