|
|
|
|
复制本帖HTML代码
|
高亮:
今天贴
X 昨天贴
X 前天贴
X |
The output will be 3.6 if you use
cout << setiosflags(ios::showpoint) << setprecision (2) << num
<< endl;
And output will be 3.60 if you use
cout << setiosflags(ios::fixed) << setprecision(2) << num
<< endl;
if you use cout << setiosflags(ios::fixed||ios::showpoint)
<< setprecision(2) << num << endl; , the output will be
3.60.
.
|
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法! |
Put your OWN COOL signature here!
|
|