windows 的 fc 会比较行末空格和换行,有没有方法忽略?
#include <bits/stdc++.h>
int main() {
for(int i = 1; i <= 1000; i ++) {
system("data.exe > data.txt");
system("yes.exe < data.txt > yes.txt");
system("no.exe < data.txt > no.txt");
printf("Text #%lld:\n", i);
if(system("fc yes.txt no.txt")) break;
system("cls");
_sleep(100);
}
return 0;
}