forked from GhifariADR/Tubes-std
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchild.h
51 lines (34 loc) · 765 Bytes
/
child.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef CHILD_H_INCLUDED
#define CHILD_H_INCLUDED
#include <iostream>
#define info(P) P->info
#define next(P) P->next
#define first(L) L.first
#define games(U) U.games
#define saldo(U) U.saldo
/*
Hazim Ismai
IF-43-05
1301194149
*/
using namespace std;
typedef struct user *u_address;
struct infotypeU{
string nama,id;
int games,saldo;
};
struct user {
infotypeU info;
u_address next;
};
struct listuser {
u_address first;
};
void createListuser(listuser &L);
u_address createuser(infotypeU info);
void insertuser(u_address &P, listuser &L);
void deleteuser(u_address &P,listuser &L);
u_address searchuser (string kode,listuser L);
void showUser(u_address P);
void showAllUser(listuser L);
#endif // CHILD_H_INCLUDED