412  11.     

27   i?(Pid != 0){

28     ofstream OPipe;

29     OPipe.attach(Fdl[1]);

30     ostream_iterator<float> OPtr(OPipe,"\n");

31     OPipe  X.size()  endl;

32     copy(X.begin(),X.end(),OPtr) ;

33     OPipe  flush;

34     ifstream IPipe;

35     IPipe.attach(Fd2[0]),-

36     IPipe  Size;

37     ?or(int N = 0; N < Size;N++)

38     {

39       IPi   Data;

40       Y.push_back(Data) ;

41     }

42     wait(&Status) ;

43     ostream_iterator<?loat> OPtr2(cout,"\n");

44     copy(Y.begin(),Y.end(),OPtr2) ;

45     OPipe.close() ;

46     IPipe.close();

47   }

48   else{

49     execl("./programll-2b","programll-2b",NULL) ;

50   }

51

52   return(0) ;

53 }

  21  25   setenv()    -
    .    , 
     .   
        setenv ().   -
     .

Fdin=filedesc ;

Fdout=filedesc;

      getenv ()  
  Fdin  Fdout.   Fdin  
" "    ,   
Fdout  "".    setenv ()  getenv ()
     (interprocess
communication  IPC)     .  -
   ,    14.  
          
attach () ( 29).    ,   
OPipe  ofstream,    .   ostream_iterator
   OPipe     ( 30):

ostream_iterator<float> OPtr(OPipe,"\n") ;

  OPtr    OPipe.    -
       "\".    OPtr
       float-.    
      .     -
,   ""       -