D.6.     415

^include <fstream.h>   // iostream.h
^include <stdlib.h>

void double_space(if streams f, ofstream& t)
{

char  ;

while (?.get(c)) (
t.put() ;

if ( ==   )
t.put() ;

}

int main (int argc, char* argv)
{

if (argc i= 3) {

cout  "\: "  argv[0]

 " _  _"  endl;

exit(l) ;

}

ifstream f_in(argv[1]);

of stream f_out(argv[2]);

if (!f_in) {

cerr  "  "  argv[l]  endl;

exit(1) ;

}
if (if_out) {

cerr  "  "  argv[2]  endl;

exit(l) ;

}
double_space(f_in, f_out);

}

D.6.    

 strstream     char*   
iostream.    strstream    -
 strstream.h.     sstream,  
i s tr ings t r earn   st r ings t ream,  -   -
   string.'

 istrstream ,     ,   
.    ( )    -
 istrstream.    istrstream :

istrstream  (char* s);

istrstream  (char* s, int n) ;

'  C++,    1998 ,  sstream . .