c++填充输出

来源:互联网 发布:电脑淘宝如何收藏宝贝 编辑:程序博客网 时间:2024/06/14 18:55
#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
double attack = 21;
cout << left;
cout << setfill('&');
cout << setw(8) << attack<<endl;
return 0;
}
原创粉丝点击