博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
实验7
阅读量:7084 次
发布时间:2019-06-28

本文共 755 字,大约阅读时间需要 2 分钟。

11.3

#include
#include
using namespace std;int main() { ofstream test("test1.txt"); test<< "已成功写入文件!"; test.close(); return 0;}

11.4

#include
#include
using namespace std;int main(){ char ch; ifstream test1("test.txt"); while(test1.get(ch)) cout<

11.7

#include 
using namespace ::std;int main(){ios_base::fmtflags original_flags = cout.flags();cout<< 812<<'|';cout.setf(ios_base::left,ios_base::adjustfield);cout.width(10);cout<<813<<815<<'\n';cout.unsetf(ios_base::adjustfield);cout.precision(2);cout.setf(ios_base::uppercase|ios_base::scientific);cout << 831.0 ;cout.flags(original_flags); }

转载于:https://www.cnblogs.com/artistqun/p/9205506.html

你可能感兴趣的文章
coredata数据库模型复制
查看>>
Django 信号处理
查看>>
Linux加载光驱优盘
查看>>
Wireshark抓包工具使用教程以及常用抓包规则
查看>>
MySQL案例分享之系统消息
查看>>
Spring Security简介
查看>>
PCRE配置共享库
查看>>
find使用方法(筆記)
查看>>
系统管理命令watch
查看>>
symantec运行报错及解决汇总
查看>>
uptime命令与系统负载
查看>>
将中文字符串分割为数组 解决str_split中文乱码php
查看>>
Discuz论坛 启动报错(1045) notconnect 解决方法
查看>>
ambari与ClouderaManager
查看>>
cdn加速
查看>>
为什么学习Linux系统?
查看>>
Windows Server2012上使用Nginx做文件服务器
查看>>
linux下的apache配置
查看>>
app测试和web端测试的区别
查看>>
一瓶汽水1元,两瓶汽水可换一瓶,现有20元,最多可喝多少瓶汽水
查看>>