萌新第一次尝试对拍,去 oi-wiki 上找到了以下代码:
#include <stdio.h>
#include <stdlib.h>
int main() {
while (true) {
system("gen > test.in");
system("test1.exe < test.in > a.out");
system("test2.exe < test.in > b.out");
if (system("fc a.out b.out")) {
system("pause");
return 0;
}
}
}
请问如何将写好的 generator 与 system("gen > test.in"); 里的 gen 绑定呢?