c++ uses popen