c++ 如何讀取 文件 中的 浮點數?
3 回答
絕地無雙
TA貢獻1946條經驗 獲得超4個贊
1 2 3 4 5 6 7 8 9 10 | #include<iostream> #include<iomanip> using namespace std; int main() { double num=0.0000001; /* 浮點顯示并設置精度為7 */ cout<<setiosflags(ios::fixed)<<setprecision(7)<<num<<endl; return 0; } |
- 3 回答
- 0 關注
- 1168 瀏覽
添加回答
舉報
0/150
提交
取消
