pans
2016-12-30 4193fafe3cecc302c032cc325e17951f5c98cb5c
RtspFace/demo/src/db/main.cpp
@@ -9,8 +9,16 @@
int main(int argc, char *argv[])
{
   int i=2;
   DBuntil dbu = DBuntil();
   person p={};
   my_db mydb={"root","Basic@2017","localhost","demo",3306};
   DBuntil dbu = DBuntil(mydb);
   person p={,"test"};
   if(dbu.db_add(i,p)){
      cout<<"add succeed"<<endl;
   }else
      cout<<"add false"<<endl;
   p={};
   p = dbu.db_rearch(i);
   if(p.p_id != NULL)
   {
@@ -18,5 +26,6 @@
      cout<<p.name<<endl;
   }else
      cout<<"person is null"<<endl;
   return 0;
}