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();