#include<algorithm> sort(a,a+3); #include<iomanip> cout<<setiosflags(ios::fixed)<<setprecision(3)<<1.2345<<endl;//输出"1.234" #include<math.h> 1.math.h文件中含有乘方(包括开方)的库函数,是pow(x,y) 其中x和y都是双精度浮点(double)型,x是底数,y是指数(如果是小数即为开方)