比如 out 和 ans。
用以下代码判断:
#include <bits/stdc++.h> using namespace std; signed main() { if(system("fc xor3.out xor3.ans")) cout<<"NOT win"; else cout<<"win"; return 0; }
输出 NOT win,但除去 out 中的多余空格即可得 win。
NOT win
win
所以问怎么让 fc 不判多余空格。
fc
手写 fc 也行