类型转换:
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();
时间: 2025-01-18 04:38:04
类型转换:
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();