freopen("1.txt", "r", stdin);
freopen("a.txt", "w", stdout);
对拍代码
:work b a b fc a.txt b.txt if errorlevel 1 pause goto work
rand()产生int型数据
如果在产生1-100000产生一个随机数,int x=ran()%100000+1;
freopen("1.txt", "r", stdin);
freopen("a.txt", "w", stdout);
对拍代码
:work b a b fc a.txt b.txt if errorlevel 1 pause goto work