更新 '2.2.cpp'
This commit is contained in:
parent
37ec6847be
commit
74cefd867a
16
2.2.cpp
16
2.2.cpp
@ -78,6 +78,22 @@ int main()
|
|||||||
mp[keywdvec[i][j]].push_back(pk);
|
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);
|
||||||
|
});
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user