-
Notifications
You must be signed in to change notification settings - Fork 2
/
tool.h
53 lines (43 loc) · 878 Bytes
/
tool.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
52
53
#ifndef TOOL_H
#define TOOL_H
#include <math.h>
#include <QString>
#include <QFile>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonValue>
#include <QJsonArray>
typedef struct gua
{
QString top;
QString left;
QString right;
QString bottom;
QString gua_ci;
QString tuan_ci;
QString da_xiang;
QString xiang_ci;
QString xiao_xiang_1;
QString xiao_xiang_2;
QString xiao_xiang_3;
QString xiao_xiang_4;
QString xiao_xiang_5;
QString xiao_xiang_6;
QString xiao_xiang_7;
QString yao_ci;
QString yao_1;
QString yao_2;
QString yao_3;
QString yao_4;
QString yao_5;
QString yao_6;
QString yao_7;
} Gua;
class Tool
{
public:
Tool();
int bin2dec(long long n);
Gua readJson(QString string);
};
#endif // TOOL_H