摘要: C++输出格式控制 1.保留两位小数 setiosflags(ios::fixed)<<setprecision(2)<<a<<std::endl; 1 #include<iostream> 2 #include<iomanip> 3 using namespace std; 4 int main( 阅读全文
posted @ 2019-12-09 20:55 &绛封尘 阅读(4240) 评论(0) 推荐(0)