所以在各大没有数据的oj上刷题才知道对拍有什么用……
首先批处理文件:
@echo off
:loop
data.exe
right.exe
test.exe
fc right.out test.out
if not errorlevel 1 goto loop
pause
goto loop
后缀名.bat
自己right和test写好后记得编译好exe
还有记得打freopen……
本文介绍了一种用于程序调试的对拍方法,并提供了一个具体的批处理脚本实例。通过对拍方法可以帮助开发者验证程序的正确性。文章还分享了如何创建和使用批处理文件来自动化这一过程。
所以在各大没有数据的oj上刷题才知道对拍有什么用……
首先批处理文件:
@echo off
:loop
data.exe
right.exe
test.exe
fc right.out test.out
if not errorlevel 1 goto loop
pause
goto loop
后缀名.bat
自己right和test写好后记得编译好exe
还有记得打freopen……
709

被折叠的 条评论
为什么被折叠?