1

I want to write a auto code judge on Windows. Now I need to compare the output of test program with correct output. I know I need to use "fc", but I don't know how to write a command like that in Unix:

./hello.out < 1.in | diff - 1.out

in Windows:

hello.exe < 1.in | fc ??? 1.out (How to write?)
Lizhi Liu
  • 97
  • 9
  • Just use an auxiliary file: `hello.exe < 1.in > hello.out & fc hello.out 1.out`. There is not a direct way. – Aacini Nov 04 '17 at 14:36
  • well, the bat in Windows is so weak!!! I change to write powershell script~ Anyway, thank you! – Lizhi Liu Nov 04 '17 at 14:56

0 Answers0