-
Notifications
You must be signed in to change notification settings - Fork 1
/
tubes.h
45 lines (36 loc) · 810 Bytes
/
tubes.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 TUBES_H_INCLUDED
#define TUBES_H_INCLUDED
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <iostream>
using namespace std;
typedef struct ElmUser *adruser;
typedef struct ElmStatus *adrstatus;
typedef struct ElmTag *adrtag;
struct ElmUser {
int iduser;
string username,password;
adrstatus status;
adruser next;
};
struct ElmStatus {
int idstatus;
string info;
int like;
adrtag tag;
adrstatus next;
};
struct ElmTag {
int iduser;
adrtag next;
};
struct socmed {
adruser first;
};
void add_user(socmed &s, adruser userbaru);
bool userexist(socmed s, string u_name);
adruser alokasiUser(int id, string username, string password);
adrstatus alokasiStatus(int id, string info);
adrtag alokasiTag(int id);
#endif // TUBES_H_INCLUDED