forked from GhifariADR/Tubes-std
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathParent.H
45 lines (29 loc) · 733 Bytes
/
Parent.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
#ifndef PARENT_H_INCLUDED
#define PARENT_H_INCLUDED
#include <iostream>
#define info(P) P->info
#define next(P) P->next
#define first(L) L.first
#define users(G) G.users
#define harga(G) G.harga
using namespace std;
typedef struct games *g_address;
struct infotypeG{
string nama,id;
int users,harga;
};
struct games {
infotypeG info;
g_address next;
};
struct listgames {
g_address first;
};
void createListgames(listgames &L);
g_address creategames(infotypeG info);
void insertgames(g_address &P, listgames &L);
void deletegames(g_address &P,listgames &L);
g_address searchgames (string kode,listgames &L);
void showGames(g_address P);
void showAllGames(listgames L);
#endif // PARENT_H_INCLUDED