-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDouble_LinkedList.h
36 lines (28 loc) · 1.01 KB
/
Double_LinkedList.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef DOUBLE_LINKEDLIST_H_
#define DOUBLE_LINKEDLIST_H_
typedef struct node
{
struct node * prev;
s32 AGE;
s32 ID;
struct node * next;
}Node;
Slot * temp;
Node * CreateList(Node * Start);
void DisplayList(Node * Start);
Node * InsertInEmptyList(Node * Start,s32 Data,s32 Age);
Node * InsertInBeginning(Node * Start,s32 Data);
void InsertAtEnd(Node * Start,s32 Data,s32 Age);
void InsertAfter(Node * Start, s32 x,s32 Data, s32 id);
Node * InsertBefore(Node * Start, s32 x, s32 Data);
Node * DeleteNode(Node * Start,s32 Data);
Node * ReverseList(Node * Start);
Node * Add_New_Patient_Record (Node * Start);
Node * Cancel_Resrvation (Node * Start);
Node * Edit_Patient_Record (Node * Start, s32 ID);
s32 IsIdRepeated (Node * Start, s32 Data);
Slot * Reserve_New_Slot (Slot * New);
void View_Patient_Record (Node * Start, s32 ID);
void View_Reservations (Slot * Start);
Slot * CreateSlottempList (Slot * New , s32 x);
#endif