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 血腥刽子手 阅读(240) 评论(1) 推荐(0)
浙公网安备 33010602011771号