launch an exe/process with stdin stdout and stderr?

后端 未结 3 1781
北海茫月
北海茫月 2020-11-28 11:05

With C++ how do i launch an exe/process with stdin stdout and stderr? I know how to do this in .NET and i remember using popen in the past but popen seems to allow stdin OR

3条回答
  •  遥遥无期
    2020-11-28 11:39

    A portable solution would be boost.process

    (Note: this has been proposed as a Boost library, and released under the same license terms, but not officially accepted. See also Where is Boost.Process?)

提交回复
热议问题