From 966d9459e7aa8f376c454e2b0d26f932f132e637 Mon Sep 17 00:00:00 2001 From: narender08 <56318863+narender08@users.noreply.github.com> Date: Sat, 3 Oct 2020 13:52:43 +0000 Subject: [PATCH] Update circular_doubly_linklist.cpp --- circular_doubly_linklist.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/circular_doubly_linklist.cpp b/circular_doubly_linklist.cpp index ee55098..2f9b80a 100644 --- a/circular_doubly_linklist.cpp +++ b/circular_doubly_linklist.cpp @@ -2,6 +2,7 @@ #include #include #include + class node { private: @@ -67,9 +68,6 @@ void doubly::addtotail(int ele) } - - - void main() { clrscr(); @@ -94,15 +92,13 @@ void main() l1.addtotail(ele); l1.display(); break; - - - default:exit(0); + default:exit(0); } cout<<"\n\n\tDO U WANT TO CONTINUE?"; cin>>c; + }while(c=='Y'||c=='y'); getch(); } -