摘要: boost::lexical_cast为数值之间的转换(conversion)提供了一揽子方案,比如:将一个字符串"123"转换成整数123,代码如下:string s = "123"; int a = lexical_cast(s); 这种方法非常简单,笔者强烈建议大家忘掉std诸多的函数,直接... 阅读全文
posted @ 2014-05-04 23:28 zzyoucan 阅读(407) 评论(0) 推荐(0) 编辑
摘要: try{ INIT_PLUG I_MongoDB* i = NEW(MongoDB); /*【注】 若自定义错误消息的数组长度必需指定为MAX_ERROR_SIZE*/ //char errmsg[MAX_ERROR_SIZE]={0};//方式一 ... 阅读全文
posted @ 2014-05-04 19:44 zzyoucan 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-05-04 01:26 zzyoucan 阅读(131) 评论(0) 推荐(0) 编辑