64,682
社区成员
发帖
与我相关
我的任务
分享
#include <iostream>
#include <string>
#include <fstream>
using namespace std;
int main()
{
ifstream fin("File_in.txt");
ofstream fout("File_out.txt");
string s;
fin >> s;
fout << s;
cout << s << " ";
while(!fin.eof())
{
fin >> s;
fout << s << " ";
cout << s << " ";
}
getchar();
}