当前位置: 技术问答>linux和unix
system()函数问题
来源: 互联网 发布时间:2016-05-20
本文导语: 这个程序是模仿shell命令的,但每次都会输出个"system error",不知是为什么? 我对system()函数还不是很理解,请高手指点。 #include #include #include #include #include using namespace std; int main() { string str; pid_t pid; co...
这个程序是模仿shell命令的,但每次都会输出个"system error",不知是为什么?
我对system()函数还不是很理解,请高手指点。
我对system()函数还不是很理解,请高手指点。
#include
#include
#include
#include
#include
using namespace std;
int main()
{
string str;
pid_t pid;
cout