Disable Console Output from External Program (C++)
问题 My code (a simple console application) calls an external program (also a console application). This program spits out many things to the console, which significantly increases runtime when running in batch mode with 10,000+ iterations. I've tried several ways to disable the output: Redirecting cout and cerr to fout -> obviously works on disabling couts in the current/local program, but doesn't disable anything from an external .exe. Some sources have suggested system("cls"), but all that does