C/C++1.引入头文件#include<iomanip>2.输出用固定格式//将result保留2位小数,四舍五入后输出。cout<<setiosflags(ios::fixed)<<setprecision(2)<<result<<endl ...
確定! 回上一頁