Labels

Monday, December 30, 2019

C++ notes

output with specified precise

double X2=202.134
std::ostringstream  x2;
x2<<std::fixed<<std::setprecision(0)<<X2;
cout<<x2.str()<<endl;


No comments:

Post a Comment