From a67f9278e3cf8e0b317125c4d4e5fd4988a3a9d7 Mon Sep 17 00:00:00 2001 From: Samrat De Date: Fri, 22 May 2020 09:11:56 +0530 Subject: [PATCH] wrapped all the functions inside a class --- data_structure/doubly_linked_list.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/data_structure/doubly_linked_list.cpp b/data_structure/doubly_linked_list.cpp index 78c322b76..805516a6f 100644 --- a/data_structure/doubly_linked_list.cpp +++ b/data_structure/doubly_linked_list.cpp @@ -9,15 +9,15 @@ struct node { }*start; class double_linked_list { - public: - double_linked_list() { - start = NULL; - } - void insert(int x); - void remove(int x); - void search(int x); - void show(); - void reverseShow(); + public: + double_linked_list() { + start = NULL; + } + void insert(int x); + void remove(int x); + void search(int x); + void show(); + void reverseShow(); }; void double_linked_list::insert(int x) {