首先是对拍的批处理文件dos命令 1:loop2make.exe > data.txt //make.exe是随机数据生成器程序3std.exe < data.txt > std.txt //std.exe标程程序4myself.exe < data.txt > ans.txt //myself.exe自己的程序5fc /A std.txt ans.txt6pause7ifnot errorlevel 1goto loop8pause9:end 比如: std文件:...
{ system("data > data.in");//运行data程序生成数据,在data.in中输出 system("right < data.in > right.out");//运行程序1,在data.in中读入,在right.out中输出 system("wrong < data.in > wrong.out");//运行程序2,在data.in中读入,在wrong.out中输出 if(system("fc right.out wrong.out"))...