Tag: 格式

std :: string格式,如sprintf

我必须使用sprintf格式化std::string并将其发送到文件stream中。 我该怎么做?