3.19

怎么设置精度?

头文件<iomanip>

 (<<fixed )<< setprecision(2)

image

image

image

 

不说输入数据有多少个,只说停止输入条件,用

while(true){

if(截止条件)

break;

}

 

posted @ 2026-03-19 19:22  ervgiu28hg34y827  阅读(5)  评论(0)    收藏  举报