main.cpp
来自「《C++ STL开发技术引导》配套光盘 聆听大师级的指点」· C++ 代码 · 共 19 行
CPP
19 行
#include <iostream>
#include <iomanip>
using namespace std;
int main(void){
cout << setw(20) << "hello" << endl;
cout << setprecision(4) << 2006.526 << endl;
cout << setw(20) << setfill('*') << "baby" << endl;
cout << scientific << 300.89 << endl;
cout << oct << 9 << endl;
cout << dec << showpos << 172 << endl;
cout << noshowpos << 172 << endl;
cout << boolalpha << true << endl;
return 0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?