-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMLL.hpp
More file actions
75 lines (54 loc) · 1.62 KB
/
MLL.hpp
File metadata and controls
75 lines (54 loc) · 1.62 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#ifndef MLL_hpp
#define MLL_hpp
#include <stdio.h>
#include <iostream>
using namespace std;
#define first(L) (L).first
#define info(Q) (Q) -> info
#define next(Q) (Q) -> next
#define nextChild(J) (J) -> nextChild
#define nil NULL
struct child{
string nama_Lengkap;
string nik;
string tanggal_Lahir;
string tempat_Lahir;
string status;
};
typedef child infotypeCh;
typedef struct elmParent *adrParent;
typedef struct elmChild *adrChild;
struct parent{
string nomor_KK;
};
struct elmParent{
parent info;
adrParent next;
adrChild nextChild;
};
struct elmChild{
infotypeCh info;
adrChild next;
};
struct List{
adrParent first;
};
void create_List(List &ListChild);
void newElm_Parent(parent info, adrParent &S);
void newElm_Child(infotypeCh info, adrChild &J);
void insertNew_Child(List &ListParent, adrParent S, adrChild J);
void inserLast_Parent(List &ListParent, adrParent S);
void deleteFirst_Child(List &ListParent, adrParent &S, adrChild &J);
void deleteLast_Child(List &ListChild, adrParent &S, adrChild &J);
void deleteAfter_Child(List &ListChild, adrChild Prec, adrChild &J);
adrChild searchBefore_Child(List ListParent, string number, string ID);
void deleteFirst_Parent(List &ListParent);
void deleteAfter_Parent(adrParent Prec, adrParent P);
adrParent searchBefore_Parent(List ListParent, string nomor_KK);
void showData_Parent(List ListParent);
void showData_Child(List ListParent);
adrParent search_Parent(List ListChild, string nomor_KK);
void cari_Child(List ListParent, string nik);
adrChild search_Child(List ListParent, string nik);
int selectMenu();
#endif /* MLL_hpp */