mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-05-11 11:07:27 +08:00
wrapped all the functions inside a class
This commit is contained in:
@@ -9,15 +9,15 @@ struct node {
|
|||||||
}*start;
|
}*start;
|
||||||
|
|
||||||
class double_linked_list {
|
class double_linked_list {
|
||||||
public:
|
public:
|
||||||
double_linked_list() {
|
double_linked_list() {
|
||||||
start = NULL;
|
start = NULL;
|
||||||
}
|
}
|
||||||
void insert(int x);
|
void insert(int x);
|
||||||
void remove(int x);
|
void remove(int x);
|
||||||
void search(int x);
|
void search(int x);
|
||||||
void show();
|
void show();
|
||||||
void reverseShow();
|
void reverseShow();
|
||||||
};
|
};
|
||||||
|
|
||||||
void double_linked_list::insert(int x) {
|
void double_linked_list::insert(int x) {
|
||||||
|
|||||||
Reference in New Issue
Block a user