diff --git a/list/linked_list1.h b/list/linked_list1.h new file mode 100644 index 0000000000000000000000000000000000000000..44d395dbba98ef8c531326cdfe97924218dba224 --- /dev/null +++ b/list/linked_list1.h @@ -0,0 +1,36 @@ +#include<iostream> +using namespace std; + + + + + +class List { +public: + +List(); +~List(); +//void Insert_Head_Node(int value); +void Insert_Node(int insert_value); +bool List_Is_Empty(); + + + +class Node { +public: + int value; + Node* next{nullptr}; + Node* previous{nullptr}; + Node(int new_value); + +}; + +Node* head{nullptr}; +Node* tail{nullptr}; +int list_size {}; +void printlist(Node* head); + + +}; + +