Question: template Type linkedQueueType::front ( ) const { assert ( queueFront ! = NULL ) ; return queueFront - > info; } / / here is

template
Type linkedQueueType::front() const
{
assert(queueFront != NULL);
return queueFront->info;
}//here is function front from class linkedQueue
void wash(linkedQueueType> &Q){
if (Q.isEmptyQueue()){
cout << "There is nothing to wash!! Have a nap, or start marketing!!" << endl;
}
else {
stackType& firstStack = Q.front();
if (firstStack.size()<5){
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();
}
Q.deleteQueue();
}
}
}//and this is another function and there an error on it in this sentence stackType& firstStack = Q.front(); can you tell me why???

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!