第十六周阅读程序2
来源:互联网 发布:妖姬 知乎 编辑:程序博客网 时间:2024/04/29 21:02
功能:
将a中字符复制到b中去
/*Copyright (c) 2016,烟台大学计算机学院*All rights reserved.*文件名称 :*作 者 : 李钊*完成日期 : 2016年6月14号*版 本 号 : v1.0**问题描述 : 阅读程序*输入描述 :*程序输出 :*/#include <iostream>#include <fstream>using namespace std;int main(){ ifstream readFile; ofstream writeFile; char ch; readFile.open("a.txt", ios::in); writeFile.open("b.txt", ios::out); while (readFile.get(ch)) writeFile.put(ch); readFile.close(); writeFile.close(); cout << "Finish!" << endl; return 0;}
运行结果:
0 0
- 第十六周阅读程序2
- 第十六周--阅读程序2
- 第十六周阅读程序2
- 第十六周 阅读程序
- 第十六周阅读程序
- 第十六周阅读程序
- 第十六周 阅读程序
- 第十六周 程序阅读
- 第十六周 程序阅读
- 第十六周--阅读程序
- 第十六周--阅读程序
- 第十六周--阅读程序
- 第十六周 阅读程序
- 第十六周--阅读程序
- 第十六周--阅读程序
- 第十六周--阅读程序
- 第十六周--阅读程序
- 第十六周--阅读程序
- java集合排序——Collections.sort()的两种用法
- 【LeetCode】355. Design Twitter
- netcat——Useful netcat examples on Linux
- PHP学习笔记
- 纯CSS,label+input+section实现tab功能
- 第十六周阅读程序2
- Presenting view controllers on detached view controllers is discouraged
- S3C2440裸机程序【2】串口uart程序
- 6类文件结构
- 第15周阅读程序(3)
- 关于JQuery
- MongoDB 3.0 安全权限访问控制
- 移动互联网SP计费
- Apache开启伪静态后接受不到URL问号后的参数,静态资源无法访问