问题
填空题
下面程序的执行结果是 【15】 。
#include <iostream>
#include <iomanip>
using namespace std;
void main()
cout<<setfill(’x’)<<setw(10);
cout<<"Hello"<<end1;
答案
参考答案:xxxxx Hello
解析: setw 设置输出宽度,setfill 设置填充字符v。