摘要: 1. cout的setprecision头文件:#include<iomanip> cout<<setprecision(1)<<fixed<<"T "<<num1<<" D "<<num2<<" H "<<calc_h(num1,num2)<<endl; 2. printf打印double,用%f 阅读全文
posted @ 2021-04-09 00:07 Kinghao0319 阅读(44) 评论(0) 推荐(0) 编辑