摘要:
#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文
阅读(379)
评论(0)
推荐(0)

浙公网安备 33010602011771号