StupidBeauty
Read times:398Posted 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