对拍怎么写

来源:互联网 发布:超级肉食男孩 mac 编辑:程序博客网 时间:2024/06/10 05:12

建立四个东东。
data.cpp是随机生成数据的代码。
right.cpp是爆搜的代码。
test.cpp是不确定的代码。

对拍程序.bat就是批处理文件,只需启动它就可以对拍了。


最重要的
对拍程序.bat的代码:

@echo off 

:again

r > input

a < input > output.a

b < input > output.b

fc  output.a output.b  > nul

if not errorlevel 1 goto again


在记事本里写,然后将.txt改成.bat就可以了。


1 0