Code Blocks redirecting input output

后端 未结 6 1852
被撕碎了的回忆
被撕碎了的回忆 2020-12-16 04:58

I\'m new to code blocks, and I can\'t seem to get it to work with command line arguments of < input > output. Does anyone know how to?

I\'m currently able to read

6条回答
  •  清歌不尽
    2020-12-16 05:38

    I think it is the problem of cb_console_runner.exe which launches your program in IDE. ConsoleRunner can not interpret redirection symbol. So, I add some code to the original code of codeblocks 13.12. Please copy linked file to [cb folder]. (Don't forget back-up the original.)

    binary : http://limity.tistory.com/attachment/cfile30.uf@241A8D485621595131B28F.exe

    source code : http://limity.tistory.com/attachment/cfile23.uf@231AF3485621595232A632.cpp

提交回复
热议问题