C++实验题

{

string inname; string outname; string String; int i = 1;

cin >> inname >> outname; ofstream out(outname.c_str()); ifstream in(inname.c_str()); if(in.fail()||out.fail()) {

cout << \打开文件失败!\ return 0; }

while(!in.eof()) {

getline(in,String);

cout <

return 0; }

联系客服:779662525#qq.com(#替换为@) 苏ICP备20003344号-4