摘要: 阅读全文
posted @ 2024-04-21 09:52 郭立恒 阅读(10) 评论(0) 推荐(0)
摘要: #include <iostream> #include <iomanip> using namespace std; int main (){ //保留3位有效数字?(四舍五入)->cout cout<<setprecision(3)<<3.004<<endl; //精确小数点3位? (四舍五入) 阅读全文
posted @ 2024-04-21 09:40 郭立恒 阅读(17) 评论(0) 推荐(0)