标签:article art tail std .net 字符 int amp 转换
https://blog.csdn.net/qq1987924/article/details/7671154
http://www.cplusplus.com/reference/sstream/ostringstream/
template<class T>
void to_string(string & result,const T& t)
{
ostringstream oss;//创建一个流
oss<<t;//把值传递如流中
result=oss.str();//获取转换后的字符转并将其写入result
}
std::ostringstream os;
BigInt c;
os << c;
std::string str = os.str();
std::ostringstream 转std::string
标签:article art tail std .net 字符 int amp 转换
原文地址:https://www.cnblogs.com/scotth/p/9446289.html