From 3df1f82bf6439cd1539b2c48e917dfc27173b059 Mon Sep 17 00:00:00 2001 From: Samrat De Date: Fri, 22 May 2020 09:14:31 +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 805516a6f..17ea2983a 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) {