怎样输出一个小数点后有十位的小数?

#include <iostream>

#include <iomanip>

using namespace std;

int main()

{

double x=0.001

cout.setf(io::fixed);

cout<<fixed<<setprecision(10)<<a<<endl;

cout<<"小王最棒!!!"<<endl;

return 0;

}

这是菜鸟小王的第一篇博客,来日方长!!!

请用近乎执拗的细致来要求自己。

 

posted @ 2020-03-21 22:52  打不死的小王  阅读(414)  评论(0编辑  收藏  举报