#include <iomanip>
cout << fixed << showpoint << setprecision(1) << endl; //设置浮点数以固定的小数位数显示,这里设置保留一位小数
C++11