Dav*_*oks 4 c++
我有一个使用basic_istream作为参数的函数,我有一个std :: string,我需要传递它的数据.我怎么做?
GMa*_*ckG 9
您可以将字符串数据放入流中:
std::string x; std::stringstream ss(x); // put string into stream function_taking_stream(ss);
归档时间:
15 年,6 月 前
查看次数:
3893 次
最近记录:
12 年,5 月 前