四捨五入到小數點第幾位

使用方法:

1. #include<iomanip>  //  I/O manipulation Input/Output控制器

2.cout  <<  setprecision(輸出位數)  <<  變數/數字  <<  endl;

參考網址

留言