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

  1. #include <LEDA/list.h>
  2.  
  3. declare(list,string)
  4.  
  5. main()
  6. {
  7.   string s =  read_string("cmd = ");
  8.  
  9.   cmd_istream IN(s);
  10.  
  11.   list(string) L;
  12.  
  13.   L.read(IN);
  14.  
  15.   L.sort(compare);
  16.  
  17.   string_ostream out;
  18.  
  19.   out << "jetzt kommt eine Liste: ";
  20.  
  21.   forall(s,L) out << s << " ";
  22.  
  23.   s = out.str();
  24.  
  25.   cout << s << "\n";
  26.  
  27. /*
  28.   L.print("L = ",'\n');
  29. */
  30. }
  31.  
  32.  
  33.     
  34.