遗憾的是记事本, Word 没有这个功能...
可以生成 exe
- #include
- #include
- #include
- #include
- #include
- #include
- #include
- using namespace std;
- #define ll long long
- const double eps=1e-8;
- const ll inf=1e9;
- const ll mod=1e9+7;
- const int maxn=1e5+10;
- int main()
- {
- char c;
- FILE *in=fopen("in.txt","r");
- FILE *out=fopen("out.txt","w");
- while (~(c=fgetc(in)))
- {
- if (c==' ')
- fprintf(out,"\t");
- else
- fprintf(out,"%c",c);
- }
- fclose(in);
- fclose(out);
- return 0;
- }
来源: http://www.bubuko.com/infodetail-3135880.html