📄 00037.cpp
字号:
/*
名称编号:00037
实现功能:标准C++
运行结果:通过
*/
/***************************************************************************/
#include <iostream>
#include <string>
#include <iomanip>
using namespace std;
void main()
{
string s;
cout << "What's your name? ";
cin >> s;
cout << "Hello, " + s << endl;
double d;
cout << "Input a float number: ";
cin >> d;
cout << setw(20)
<< setprecision(2)
<< setiosflags( ios::fixed )
<< d
<< endl;
}
/***************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -