代码谁都会,这里介绍一种简便方法,不用一行一行复制
1.复制内容到1.txt,最后回车再输入个a表示结束
2.在本地编写cpp文件:
#include <cstdio>
#include <iostream>
using namespace std;
int main()
{
freopen("1.txt","r",stdin);
freopen("2.txt","w",stdout);
char s[100];
while (gets(s)&&s[0]!='a')
printf("%s\\n",s);
return 0;
}
3.把2.txt的内容复制
#include <cstdio>
using namespace std;
int main()
{
printf("复制的内容");
return 0;
}提交AC