c/c++ pipe fork管道 子进程
#include<bits/stdc++.h>#include<unistd.h>#include <stdio.h>#include <stdlib.h>using namespace std;#define MAXIMUM 1000int main(){ int fd[2]; pid_t pid; char line[MAXIMUM]; if(pipe(fd