c – 将std :: string转换为basic_ostream?

前端之家收集整理的这篇文章主要介绍了c – 将std :: string转换为basic_ostream?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
上面有转换吗?

解决方法

将std :: string转换为输出流?通常是:将字符串转换为从给定字符串中读取字符的输入流:
std::string myString = //...
std::istringstream iss(myString);

另见:http://www.cplusplus.com/reference/iostream/istringstream/

原文链接:https://www.f2er.com/c/115213.html

猜你在找的C&C++相关文章