main.cpp

来自「《C++ STL开发技术引导》配套光盘 聆听大师级的指点」· C++ 代码 · 共 14 行

CPP
14
字号
#include <iostream>
using namespace std;
 
int main(void){
	cout.setf(ios::scientific | ios::uppercase);
	cout << 2006.5 << endl;
	//
	cout.setf(ios::floatfield,ios::fixed | ios::showpos);
	cout << 2006.5 << endl;  
	//
	cout.setf(ios::showpos);
	cout << 2006.5 << endl;
	return 0;  
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?