wrapped all the functions inside a class

This commit is contained in:
Samrat De 2020-05-22 09:11:56 +05:30
parent e5af368065
commit a67f9278e3

View File

@ -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) {