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 + -
显示快捷键?