1、直接采用system()
2、popen
http://www.cnblogs.com/xitang/p/4288808.html
C++调用shell
原文:http://www.cnblogs.com/hzijone/p/5446016.html