0
double vd = 9.7122333333344;
stringstream sstream;
sstream.precision(0);
sstream<<std::fixed<<vd<<endl;
cout<<sstream.str()<<endl;

MSVC = 10,Linux = 9

4

0 回答 0