更新 '2.2.cpp'

This commit is contained in:
Kirigaya Kazuto 2017-09-17 20:25:23 +08:00
parent 37ec6847be
commit 74cefd867a

16
2.2.cpp
View File

@ -78,6 +78,22 @@ int main()
mp[keywdvec[i][j]].push_back(pk);
});
});
ostr.str("");
ostr<<"select salary from pages where title like '%"
<<keywdvec[i][j]<<"%' ";
sqlcmd=ostr.str();
conn.exec("use bigdata2",nullptr);
conn.exec(sqlcmd,[&](MySQLResult& res)
{
res.stepRow([&](char** val,unsigned long* len)
{
cash_pack pk=ParseCashX(val[0]);
mp[keywdvec[i][j]].push_back(pk);
});
});
}
}