home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / cplus / 19972 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.9 KB  |  61 lines

  1. Path: sparky!uunet!math.fu-berlin.de!informatik.tu-muenchen.de!rz.uni-passau.de!hiwi170.rz.uni-passau.de!schmidt
  2. From: schmidt@rz.uni-passau.de (SCHMIDT GUIDO)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Wanted: C++ Classes
  5. Date: Wed, 27 Jan 1993 15:28:16 GMT
  6. Organization: University of Passau - Germany
  7. Lines: 49
  8. Message-ID: <schmidt.36@rz.uni-passau.de>
  9. References: <1954@alcbel.be>
  10. NNTP-Posting-Host: hiwi170.rz.uni-passau.de
  11.  
  12. In article <1954@alcbel.be> sp_ppm@space.alcbel.be (Paul Moore) writes:
  13.  
  14. >Hello,
  15.  
  16. >I'm looking for freely available C++ classes, mainly to improve me knowledge of the language. I remember reading somewhere about sites that have these available, but 
  17. >I've forgotten where they are.
  18.  
  19. >Can anyone help me by letting me know where I can locate some?
  20.  
  21. >Thanks in advance, Paul
  22.  
  23. >---
  24. >Paul Moore,                      email: sp_ppm@space.alcbel.be
  25. >ALcatel Bell Telephone,
  26. >Berkenrodelei 33,                phone: (+32) 3/829.5024
  27. >2660 Hoboken,
  28. >Belgium.
  29.  
  30. Hello!
  31.  
  32. I recently got the class library LEDA 3.0 from ftp.uni-sb.de in pub/LEDA.
  33. It contains very powerful classes. It has many different container classes
  34. like stacks, queues, lists, dictionaries, hash_arrays etc. All these are
  35. implemented with very good algorithms, so they are very fast.
  36. See this short code example:
  37.  
  38.     #include <LEDA\h_array>
  39.  
  40.     main()
  41.     {
  42.         h_array<string, string> h; // german-english dictionary
  43.  
  44.         h["Stuhl"] = "chair";
  45.         h["Tisch"] = "table";
  46.  
  47.         string s;
  48.         forall_defined(s, h) cout << s << ":" << h[s] << endl;
  49.     }
  50.  
  51. put and get operations via operator[] have a complexity of O(1)!
  52. There is a version with and without templates.
  53.  
  54. Guido.
  55. --------------------------------------------------------------------
  56. - Guido Schmidt                                                    -
  57. - schmidt@rz.uni-passau.de                                         -
  58. - Universitaet Passau, Germany                                     -
  59. --------------------------------------------------------------------
  60.  
  61.