Choose Your Language: International US DE ES FR
Hello Guest Login Here or

C++ sets class 1.0

Author's Description

C++ sets class - C/C++ sets class

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:
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:
A + B = {x: x is in A -or- x is in B }
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 }
example
Let A = {1, 2, 3, 4} and B = {3, 4, 5, 6}. Then
A + B = {1, 2, 3, 4, 5, 6}
A * B = {3, 4}
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. In the class declaration file below, the following definitions are made:
#define MAX_WORDS 2
#define WORD_SIZE ( 8 * sizeof( unsigned long ) )
These parameters make the range of U, 1 to 64 in sets. To increase or decrease the size of U, change the defined value of MAX_WORDS.
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 }
example
Let A = {1, 2, 3, 4} and B = {3, 4, 5, 6}. Then
~A = {5, 6, 7, . . .}
~B = {1, 2, 7, 8, 9, . . .}
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}
example
Let A = {1, 2, 3, 4} and B = {3, 4, 5, 6}. Then
A - B = {1, 2}
It can be shown that A - B = A * ~B.
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.

C++ sets class 1.0 is licensed as Freeware for the Windows operating system / platform. C++ sets class is provided as a free download for all software users (Freeware).

User Reviews (0)

No reviews yet, be the first to add a review and we'll give you some extra points.
Download Notice
C++ sets class is periodically updated by FileCluster but you may encounter situations when the software informations are slightly out-of-date, the developer can modify this product without notifying us. Version [1.0] is currently the latest updated version of the software.

Any form of support or software problems will be addressd directly to its developers, Abecedarical Systems. Please be aware that we do NOT provide C++ sets class cracks, serial numbers, registration codes or any forms of pirated software downloads.
Related Software
Web Text Enhancer 1.2
Analyze and create appealing ad texts easily.
1 / 144
RSS Planter 1.0.123
Semi automatic rss software submission.
0 / 198
Financial Web Elements 1.0
Financial themed HTML,and web graphics
2 / 483
Hello Engines! Professional 6.7
Award-winning promotion tool
2 / 233
Theme Buzz 1.0
Costumize your theme for wordpress
11 / 509
WireFusion Professional 5.0
Web3D authoring tool with Flash support
1 / 447
Social Site Generator 2.1
Social Site Generator Script
0 / 68
Unchaste Multi-Purpose Web Calculator 1
Adult web design and hosting multi-calculator
1 / 216
Free Counter 1.0
free web counter stats
2 / 279
Keyword Investigator 1.2
A keyword marketing program.
1 / 271