上一页 1 ··· 63 64 65 66 67 68 69 70 71 ··· 88 下一页
摘要: #include <boost/lexical_cast.hpp>void test_lexical_cast(){ int number = 123; string str = "456"; try { int tmp1 = boost::lexical_cast<int>(str); string tmp2 = boost::lexical_cast<string>(number); cout<<tmp1<<endl; cout<<tmp2<<endl; }catch(boost::ba 阅读全文
posted @ 2012-04-17 23:08 Leung文 阅读(370) 评论(0) 推荐(0) 编辑
上一页 1 ··· 63 64 65 66 67 68 69 70 71 ··· 88 下一页