From d4a9e2daf5f6f230179e4e2e90cda88764ef3591 Mon Sep 17 00:00:00 2001 From: mohit0003 <31645375+mohit0003@users.noreply.github.com> Date: Sat, 23 Oct 2021 10:42:56 +0530 Subject: [PATCH] Update stack_using_queue.cpp --- stack_using_queue.cpp | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/stack_using_queue.cpp b/stack_using_queue.cpp index fe5a903..ca25d83 100644 --- a/stack_using_queue.cpp +++ b/stack_using_queue.cpp @@ -107,19 +107,13 @@ int main() { int x,ele,ch; char c; -// queue q; - ///* -// q.enque(1); -// q.enque(2); -// q.enque(3); -// cout<>ch; switch(ch) @@ -133,11 +127,12 @@ int main() cout<<"\n\tPOPPED ELEMENT IS:"<>c; + }while(c=='y'||c=='Y'); getch();