小编Arm*_*Arm的帖子

如何将ostream转换为字符串

在一个函数中,我正在传递 ostream 并希望转换为字符串。

void func (ostream& stream) {
    /* Needs to convert stream into string */
}
Run Code Online (Sandbox Code Playgroud)

c++ string iostream function ostream

1
推荐指数
1
解决办法
42
查看次数

标签 统计

c++ ×1

function ×1

iostream ×1

ostream ×1

string ×1