Ejemplo n.º 1
0
int main(){
   LogDao logdao;
   logdao.connect("openlab/open123");
   MatchedLogRec mlog={"openlab",9527,
   1000,3000,2000,"192.168.1.110",
   "192.168.0.20"};
   logdao.saveData(mlog);
   logdao.commit();
   logdao.disConnect();
}
Ejemplo n.º 2
0
int main(){
    MatchedLogRec  mlog={"meixi",10000,
    1000,5000,4000,"192.168.110.119",
    "192.168.1.91"};
    LogDao   logdao;
    logdao.connect("openlab/open123");
    logdao.saveData(mlog);
    logdao.commit();
    logdao.disConnect();
}