#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
using namespace std;
int main(void)
{
int number = 10;
cout << number << endl;
cout.unsetf(ios::dec);//卸载当前默认的10进制输出方式
cout.setf(ios::oct,ios::basefield);//设置成8进制输出
cout.setf(ios::showbase);//对于输出,使用c++基数
cout << number << endl;
cout.width(10);//宽度为10,填充物在下面
cout.fill('*');
cout.setf(ios::left,ios::adjustfield);//靠左对齐
cout << number << endl;
system("pause");
}