The sets class can be used to perform set operations in your programs. It represents set elements as bits in a private array of unsigned long integers. The array size is a defined constant which can be changed to suit your application. The sets class supports the following set operations by means of C++ operator overloading: (1) union -- The union of two sets A, B is the set of all elements which belong to either A or B. In the sets class, the symbol + is the binary union operator. (2) intersection -- The intersection of two sets A, B is the set of all elements which belong to both A and B. The symbol * is the binary intersection operator:
A * B = {x: x is in A -and- x is in B } (3) complement -- In set theory, sets are subsets of a fixed universal set U. In the sets class, U is the set of elements numbered from 1 to MAX_WORDS * WORD_SIZE. The complement of set A is the set of elements belonging to U but not belonging to A. The symbol ~ is the unary complement operator: ~A = {x: x is in U, x is not in A } (4) difference -- The difference of two sets A, B is the set of all elements which belong to A less those in B. The symbol - is the binary difference operator: A - B = {x: x is in A, x is not in B} (5) symmetric difference -- The symmetric difference of two sets A, B is the set of all elements which belong to A or to B, but not both.

Download C++ sets class 1.0

Keywords: sets, class, c/c++,


C++ sets class 1.0

Author:

Abecedarical Systems

Downloads:

1649

Size:

13K

Cost:

$0.00 US

License:

Freeware

Operating Systems:

Win98, Winxp,

Release Status:

2001-01-15

Recent Changes:

New release

Supported Languages:

English

Additional Requirements:

C/C++ compiler


Other Education

Animated Words 1.0 Icon Animated Words 1.0
A spelling program for children from pre-school through first grade. The child is helped to match the word with it's picture. When the word is correctly matched, pieces are added .. [ Read more ]

Numerical Plotter 1.0 Icon Numerical Plotter 1.0
This source code enables you to plot the solutions to scientific and engineering problems. The Visual C++ programming environment was chosen for realization of numerical computat.. [ Read more ]

United States Geography Tutor 1.1.0 Icon United States Geography Tutor 1.1.0
Want to brush up on the names and locations of the 48 contiguous states of the USA? This program from the Family Games Web Center will help you. United States Geography Tutor pres.. [ Read more ]

L-Nix 1.20a Icon L-Nix 1.20a
L-nix is an interactive UNIX tutorial program that teaches beginner to advanced concepts of the UNIX operating system. L-nix includes a simple UNIX shell simulator allowing users.. [ Read more ]

C++ sets class 1.0 Icon C++ sets class 1.0
The sets class can be used to perform set operations in your programs. It represents set elements as bits in a private array of unsigned long integers. The array size is a defined.. [ Read more ]

Navigation

Home

Advertise

Link to us

Member

Privacy


Categories

AntiVirus

Audio Software

Education

Games

Network and Internet

Photo Software

Screensaver

System Utilities



Free Software Downloads | Link To Us | Contact Us | FAQ | About | Advertise