home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / diverses / leda / prog / basic / stream.c < prev    next >
Encoding:
C/C++ Source or Header  |  1991-11-15  |  300 b   |  28 lines

  1. #include <LEDA/basic.h>
  2. #include <LEDA/list.h>
  3.  
  4. declare(list,string)
  5.  
  6. main()
  7. {
  8.   list(string) L;
  9.  
  10.   string s =  read_string("cmd = ");
  11.  
  12.   cmd_istream IN(s);
  13.  
  14.   while (IN) L.append(read_line(IN));
  15.  
  16.   L.print('\n');
  17.   newline;
  18.  
  19.   cmd_ostream OUT("sort");
  20.  
  21.   L.print(OUT,'\n');
  22.   OUT.flush();
  23.  
  24. }
  25.  
  26.  
  27.     
  28.