pans
2016-12-30 eb68a1e3ad5fb24b4c674b8f2fd529b8302c7d97
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <string>
#include <iostream>
 
#include "DBuntil.h"
 
using namespace std;
 
 
int main(int argc, char *argv[])
{
    int i=2;
    DBuntil dbu = DBuntil();
    person p={};
    p = dbu.db_rearch(i);
    if(p.p_id != NULL)
    {
        cout<<p.p_id<<endl;
        cout<<p.name<<endl;
    }else
        cout<<"person is null"<<endl;
    return 0;
}