类型转换:
lexical_cast
头文件:
#include <boost/lexical_cast.hpp> using namespace boost;
代码:
string send_str; double i =3.1415926535897932; send_str = lexical_cast<string>(i++).c_str();
时间: 2024-11-13 09:18:06
类型转换:
lexical_cast
头文件:
#include <boost/lexical_cast.hpp> using namespace boost;
代码:
string send_str; double i =3.1415926535897932; send_str = lexical_cast<string>(i++).c_str();