maxorand's blog

By maxorand, history, 7 years ago, In English

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

  • Vote: I like it
  • +4
  • Vote: I do not like it

| Write comment?
»
7 years ago, # |
  Vote: I like it +6 Vote: I do not like it

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.

»
7 years ago, # |
  Vote: I like it +6 Vote: I do not like it
for %i in ("*.in") do @(main < "%i" > out && fc "%i" out)

May be useful for you?