Блог пользователя maxorand

Автор maxorand, история, 6 лет назад, По-английски

I can judge my code if I have the judge datas with me in Linux by keeping all *.in, *.out and main.cpp code file in one folder and run this Untitled command in the terminal. But how can I do this type of things in Windows, in CMD or something like this? Is there any equivalent code for the above one? If anyone knows, please share. :D

  • Проголосовать: нравится
  • +4
  • Проголосовать: не нравится

»
6 лет назад, # |
  Проголосовать: нравится +6 Проголосовать: не нравится

I've heard that Windows supports Bash now. The command you've posted is basically Bash. You can try it in Windows (Latest Version) too.

»
6 лет назад, # |
  Проголосовать: нравится +6 Проголосовать: не нравится
for %i in ("*.in") do @(main < "%i" > out && fc "%i" out)

May be useful for you?