摘要:
#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 阅读全文