Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
173 views
in Technique[技术] by (71.8m points)

Is there similar function in c++ like subprocess.Popen() in python?

I am wondering if there is similar function in c++ like subprocess.Popen() in python that would give me results given the execution list as the function's parameter.

question from:https://stackoverflow.com/questions/65886035/is-there-similar-function-in-c-like-subprocess-popen-in-python

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Both of those will take a small amount of wrangling to get from whatever list-of-arguments you have to something they can use (popen() expects a command to pass to the shell, like Popen() when args is a string).


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...