home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cset21v1.zip / IBMCPP / TUTORIAL / ICLCC / TUTOR2 / EXAMPLE2.C next >
C/C++ Source or Header  |  1993-05-07  |  2KB  |  51 lines

  1. /******************************************************************************/
  2. /*                                                                            */
  3. /* COPYRIGHT:                                                                 */
  4. /* ----------                                                                 */
  5. /* Copyright (C) International Business Machines Corp., 1991,1992.            */
  6. /*                                                                            */
  7. /* DISCLAIMER OF WARRANTIES:                                                  */
  8. /* -------------------------                                                  */
  9. /* The following [enclosed] code is sample code created by IBM                */
  10. /* Corporation.  This sample code is not part of any standard IBM product     */
  11. /* and is provided to you solely for the purpose of assisting you in the      */
  12. /* development of your applications.  The code is provided "AS IS",           */
  13. /* without warranty of any kind.  IBM shall not be liable for any damages     */
  14. /* arising out of your use of the sample code, even if they have been         */
  15. /* advised of the possibility of such damages.                                */
  16. /*                                                                            */
  17. /******************************************************************************/
  18. #include <tstring.h>
  19. #include <iglobals.h>
  20. #include <person.h>
  21.  
  22. #include <i..seq.h>
  23. typedef I........Sequence <Person>  People;
  24.  
  25. #include <i....h>
  26. typedef ISet <......> PeopleSet;
  27.  
  28. int main () {
  29.         People people;
  30.  
  31.         people.add("J. Uhl");
  32.         people.add("K. Liegert");
  33.         people.add("M. Blum");
  34.         people.add("T. Wappler");
  35.         people.add("F. Seliger");
  36.         people.add("H. Wingert");
  37.         people.add("C. Ludwig");
  38.  
  39.         people.add("Your Name.......");
  40.         people.......("T. Wappler");
  41.  
  42.      PeopleSet peopleSet;
  43.  
  44.         peopleSet....("Joe Cool");
  45.         peopleSet....("Mr. Nobody");
  46.         peopleSet.......("Joe Cool");
  47.         peopleSet....("Mr. Somebody");
  48.  
  49.         return 0;
  50. }
  51.