StupidBeauty
Read times:361Posted at:Wed Apr 4 02:43:15 2012
- no title specified

转载:Converting mysqlpp::String to C++ int

mysqlpp::String本身具有操作符“operator int()”,所以可以直接赋值给int类型的变量。

http://stackoverflow.com/questions/2126380/converting-mysqlppstring-to-c-int

亮点:

mysqlpp::String has operator int() so your code snippet should work. What problem are you having with it?

If you want to be more explicit, you can use mysqlpp::String's conv function:

int i = futureItemsets[j].conv<int>(0);

timeFrameItemsets.push_back(i);

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands

 
Recent comments
2017年4月~2019年4月垃圾短信排行榜Posted at:Thu Sep 26 04:51:48 2024
Qt5.7文档翻译:QWebEngineCookieStore类,QWebEngineCookieStore ClassPosted at:Fri Aug 11 06:50:35 2023盲盒kill -9 18289 Grebe.20230517.211749.552.mp4