2013-05-10 11:20 33人阅读 评论(0) 收藏 编辑 删除 [cpp] view plaincopyprint? 01.1./* 02.2.* 程序的版权和版本声明部分 03.3.* Copyright (c) 2013, 烟台大学计算机学院学生 04.4.* All rights reserved. 05.5.* 文件名称:Complex.cpp 06.6.* 作 者: 李全港 07.7.* 完成日期:2013 年 6月 14日 08.8.* 版 本 号: V 1.0 09.9.* 输入描述:无 10.10.* 问题描述:无 11.11.* 程序输出:无 12.12.*/
#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; }
07-13
07-14
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交