64,637
社区成员
发帖
与我相关
我的任务
分享
// ostringstream.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include <iostream>
#include <iomanip>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
// third method:
int i = 1351;
std::ostringstream temp;
temp << setw(8) << i;
cout << temp.str();
return 0;
}