-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfunc.h
More file actions
34 lines (29 loc) · 738 Bytes
/
func.h
File metadata and controls
34 lines (29 loc) · 738 Bytes
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
#ifndef FUNC_H
#define FUNC_H
#define MAX_USER 1024
#define MAX_NAME 32
struct userInfo {
int isFull;
char name[MAX_NAME]; //user name are limited to 10 Chinese char.
float money;
};
struct userInfo user[MAX_USER];
FILE *userFile; //The lenth of the variable name should less than 17 chars.
int op; // op: Operation
void firstUseInit(char *userFilePath);
void normalInit(char *userFilePath);
void showTitle();
void showInfo(int num);
void checkUserFile(char *userFilePath);
void showTitle();
void showInfo(int num);
void consume();
void charge();
void addUser();
void searchWithName();
void searchWithNum();
void deleteUser();
void editUser();
void exportFile(char *ieFilePath);
void importFile(char *ieFilePath);
#endif