#include <iostream>
#include <sstream>
using namespace std;
int wmain(int argc, wchar_t** argv)
{
ostringstream out;
out << 3000 << endl;
std::cout << out.str();
system("pause");
return 0;
}
整型转成string类型;流操作
最新推荐文章于 2023-06-28 15:43:46 发布
#include <iostream>
#include <sstream>
using namespace std;
int wmain(int argc, wchar_t** argv)
{
ostringstream out;
out << 3000 << endl;
std::cout << out.str();
system("pause");
return 0;
}