From f89598fab2139bd0a85d070e82405af4c0019343 Mon Sep 17 00:00:00 2001 From: Alrik Appelfeldt <alrap417@student.liu.se> Date: Wed, 28 Feb 2024 20:18:07 +0000 Subject: [PATCH] Upload New File --- list/linked_list.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 list/linked_list.h diff --git a/list/linked_list.h b/list/linked_list.h new file mode 100644 index 0000000..42c37a4 --- /dev/null +++ b/list/linked_list.h @@ -0,0 +1,36 @@ +#include<iostream> +using namespace std; + + + + + +class List { +public: + +List(); +~List(); +void Insert_Head_Node(int value); +void Insert_Tail_Node(int 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); + + +}; + + -- GitLab