2018年3月25日

cout输出小数位数

摘要: #include #include /* 需要头文件:"iomanip" iomanip表示: io manipulator */ using namespace std; int main() { float a = 0.123000789; cout.setf(ios::fixed);//打开自动补位 cout << "a=" <<fixed<< setprec... 阅读全文

posted @ 2018-03-25 13:45 血腥刽子手 阅读(227) 评论(1) 推荐(0) 编辑

导航