void do(queue&q){stacktemp;while(!q.empty()){temp.push(q.front()); q.pop();}while(!temp.empty(){q.push(temp.top()); temp.pop();}}After this function the queue q is
stacktemp;while(!q.empty()){temp.push(q.front()); q.pop();}while(!temp.empty(){q.push(temp.top()); temp.pop();}}After this function the queue q is
while(!q.empty()){temp.push(q.front()); q.pop();}
while(!temp.empty(){q.push(temp.top()); temp.pop();}}
After this function the queue q is
doesn't changed
has rubbish data
destroyed (empty)
reversed
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here