popen++ is a C++ library that allows you to run a child process and have its input, output and error avaliable as standard C++ streams.