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
| #ifndef _DBUNTIL_H_
| #define _DBUNTIL_H_
|
| struct person
| {
| int p_id;
| char *name;
| //ͼƬ
| };
|
| class DBuntil
| {
|
| public:
| DBuntil();
| ~DBuntil();
| person db_rearch(int f_id);
|
| int db_register(int f_id,person p);
|
| private:
|
| int db_add();
| int db_update();
| int db_select(int f_id,person *per);
|
| char *sql;
| int res;
| static const char user[];
| static const char pswd[];
| static const char host[];
| static const char db[];
| static unsigned int port;
| };
|
|
| #endif
|
|