摘要:
C++实现文件拷贝#include<fstream>#include<iostream>#include<cstdio>using namespace std;void copy(const char*scrfile,const char*destfile){ ifstream in(scrfile); ofstream out(destfile); out<<in.rdbuf(); out.close(); in.close();}void main(){ copy("12.txt","13.txt"); 阅读全文