也許你很快就說,那麼簡單,第一次迴圈,fork後2個程序,第二次再fork出4個, ... getppid(), getpid(), i); } wait(NULL); wait(NULL); return 0;.
確定! 回上一頁