会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
涂山树下
博客园
首页
新随笔
联系
订阅
管理
2020年5月9日
C++格式化输出两位小数
摘要: 1.引入头文件 #include <iomanip> 2.格式化输出: cout<<setiosflags(ios::fixed)<<setprecision(2); 例子: #include<iostream>#include <iomanip>using namespace std;int ma
阅读全文
posted @ 2020-05-09 17:54 涂山树下
阅读(3993)
评论(1)
推荐(0)
公告