1.一个特殊值的用法:
include
using namespace std;
double const PI=3.14159265358979323;
int main()
{主要内容}
2.确定的显示小数点后位数的方法:
引用iomanip拓展包
在输出时格式为:cout<<fixed<<setprecision(7)<<s<<endl;
fixed的意义在于输出的是正常数而不是用科学计算法表示的数。
c++蓝桥杯准备笔记1
最新推荐文章于 2023-04-11 16:06:00 发布