📄 11_14.cpp
字号:
#include <iostream>
using namespace std;
int main()
{ double x = 0.0001234567; double y = 1.846e8;
//按照默认格式显示
cout << "Displayed in default format:\n" << x << '\t' << y << endl;
//按科学计数法显示
cout << "Displayed in scientific format:\n" << scientific << x << '\t' << y << endl;
//按定点格式显示
cout << "Displayed in fixed format:\n" << fixed << x << '\t' << y << endl;
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -