例如74.5
输出两位小数的方法:
cout << fixed << showpoint << setprecision(2)<< result;//输出74.50
注意:
cout<< setprecision(2)<< result;//输出75

例如74.5
输出两位小数的方法:
cout << fixed << showpoint << setprecision(2)<< result;//输出74.50
注意:
cout<< setprecision(2)<< result;//输出75