forked from zhangshifen38/store
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata.h
47 lines (39 loc) · 885 Bytes
/
data.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
#ifndef DATA_H
#define DATA_H
#define MAX 200
typedef struct User{
int adm; //用户标识符
char name[MAX]; //用户名
char pwd[17]; //密码
}USER;
//用户结构体
typedef struct User_Node{
USER user; //用户结构体主体
struct User_Node *node; //结构体指针
}USER_N;
typedef struct Goods{
int type; //商品代码
char name[MAX]; //商品名称
int num; //商品进货数量
double price; //商品价格
int time; //进货时间
int sold; //商品销量
}GOO;
//商品结构体
typedef struct Goods_Node{
GOO goods; //商品结构体主体
struct Goods_Node *node; //结构体指针
}GOO_N;
//商品链表结点结构体
typedef struct Customer{
char name[MAX]; //顾客姓名
int star; //顾客星级
double cost; //消费额
}CUS;
//顾客信息结构体
typedef struct Customer_Node{
CUS customer; //顾客结构体主体
struct Customer_Node *node;//结构体指针
}CUS_N;
//顾客信息链表结点结构体
#endif