stringstream
- 参考
#include
#include
using namespace std;
int main()
{
stringstream ret;
ret << "I love you";
cout << ret.str() << endl; //把stringstream类型转换为string类型
return 0;
}
#include
#include
using namespace std;
int main()
{
stringstream ret;
ret << "I love you";
cout << ret.str() << endl; //把stringstream类型转换为string类型
return 0;
}