home *** CD-ROM | disk | FTP | other *** search
- **********************************************************************
- * DISCLAIMER OF WARRANTIES: *
- * *
- * The following enclosed code is sample code created by IBM *
- * Corporation. This sample code is not part of any standard IBM *
- * product and is provided to you solely for the purpose of assisting *
- * you in the development of your applications. The code is provided *
- * "AS IS", without warranty of any kind. IBM shall not be liable *
- * for any damages arising out of your use of the sample code, even *
- * if they have been advised of the possibility of such damages *
- * *
- **********************************************************************
-
- PROJECT - Even/Odd
-
- DESCRIPTION:
- This program creates sets using the default class, ISet. The
- "odd" set contains all odd numbers less than ten. The "prime" set
- contains all prime numbers less than ten. The program creates a
- set, "oddPrime" that contains all the prime numbers less than ten
- that are odd, by using the intersection of "odd" and "prime". It
- creates another set, "evenPrime", that contains all the prime
- numbers less than ten that are even, by using the difference of
- "prime" and "oddPrime".
-
- TASK:
- This program uses sets to store odd and prime numbers.
-
- CONCEPT/FEATURE:
- This program is a sample to demonstrate the use of the default
- class ISet.
-
- HOW TO RUN THE SAMPLE FROM THE COMMAND LINE:
- From within the directory containing the sample, simply type
- the name of the executable:
-
- EVENODD
-
- ADDITIONAL INFORMATION:
-
- For additional information on this and other samples shipped with
- the VisualAge for C++ product, see the Guide to Samples notebook.
-
- To access the notebook from Program Manager, open the VisualAge
- for C++ product object, then open the Guide to Samples notebook.
-
-