我得到一个左值错误

时间:2013-11-01 07:19:04

标签: c system-calls multiprocess

    main(){

     helloworld();
}
void helloworld(){
     cout<<"hellowowrld";
}

它输出你好世界,它有什么问题?

1 个答案:

答案 0 :(得分:5)

这一行你缺少一个=

 if(pipe(pfd2) =-1){