65,211
社区成员
发帖
与我相关
我的任务
分享
......
#include <sstream>
......
std::stringstream ss(std::stringstream::in|std::stringstream::out);
void XXXX::toString(std::string &outputs, const YYY& yyy)
{
for (size_t i = 0; i < yyy.size(); ++i)
ss<< yyy.name(i) << ": " << yyy.values[i] << std::endl;
ss>>outputs;
}
......
