对拍

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;

 

posted on 2017-08-16 17:16  Yxter  阅读(122)  评论(1编辑  收藏  举报

导航