|
|
| 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. |
| Other author's software: | - Almanac 1.0 Almanac calculates the equatorial coordinates of the sun, the moon, and the planets. From these it calculates the times of rise, set, and meridian transit for each of these celestial bodies. Additionally, it can calculate the times for twilight
- Zeno Interpreter 1.1 This application is an interpreter for the Zeno computer programming languare. It requires Microsoft Windows 95 or later. It includes a text editor for creating, saving, and printing programs.
| | Show all author's software |
Description: 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. | Short tags: sets, class, c/c++ | System Requirements: C/C++ compiler | Change Info: New release | |
| Free Download C++ sets class 1.0 from home.att.net |
| Similar software shotlights: | - JWizard 1.0 Build professional "step by step" interface (ie. Wizard). In a few lines of code you create a powerful wizard to simplify complex tasks in your software systems.It provides a powerful framework for
- JOutlookBar 1.0 JOutlookBar provide the Microsoft® Outlook component in Java. Even the Swing API do not provide this powerful component ... got it with the JOutlookBar.This powerful outlook bar support a lot of
| | Find all software similar on C++ sets class 1.0 |
| Similar smart reviews: | - Windows Inspection Tool Set The quickest way to find out whats going on in your Windows system is to take a look at the task manager. Finding out what software is installed on the computer takes opening the control panel, and to view active network connections you will need to refer to the firewall. Thats quite a bit of an effort; besides, who can tell, what stands behind those
- Auto Power-On Shut-Down. Set the Time. No one can deny that it is really convenient to have a powered on computer when you are ready to work or not to get up early in the morning to shut it down when, for example, all downloads are complete. Auto Power-on Shut-down can make your life convenient and easy. Auto Power-on Shut-down is software that gives you an opportunity to auto-startup your computer and
- Setup Builder 6.04, Which Sets the Things Up Any respect-worth program should help user not to think «where it is and how to run it»; once your user has downloaded the software from the Internet (or bought it on a CD), he should be only few clicks away from having the program running. In the simplest case, of course, you can say something like «just unpack the files and take them to any place you
- Vista Style Elements Icon Set, Do You Have a Dream? As a developer, dont you have a dream that the day will come when users will be able to comprehend the logics of your programs without your assistance, and your technical support service will finally take a break from those round-the-day silly questions like «How do I go around this menu?» or «What is that button for?» or «What
- Triaxes products - a comprehensive production set for professional 3D imaging Three-dimensional images that you can look at using special glasses or without them are not a novelty by any means. These technologies have been around for decades and many of us have seen calendars and plastic cards with images that changed under different angles. However, at that time, these technologies were inaccessible to home users willing to experiment with stereo images. Thanks to the
- OLEDB Direct - a great set of COM interfaces for database-driven applications When you are creating a database-driven application, interaction with the database becomes one of the key pieces of the overall functionality that requires significant time to implement. If you are using multiple data sources, this task becomes even more complex due to the complexity of database connections and related routines. That is the exactly the case when a universal database interface would
- H264 WebCam Pro - the easiest way to set up a round-the-clock video surveillance system There are many reasons why youd want to set up your own surveillance system. You can install one in your summer house, in your garage and backyard, in your warehouse or office to be always aware of whats happening around you, to monitor your employees or watch your children play in the yard from any remote location. However, professional video monitoring systems are
- Earth from Cosmos Screensaver - an impressive set of Earth views for any space lover As kids, many of us dreamt about going to space and being astronauts. This dangerous profession tempted our young minds and made us look at the starry night sky with genuine delight. However, time went by and we finally realized that life is much more practical and down-to-earth than we naively assumed. However, if you are still fascinated with space and visit NASA?s website from time
| | Find all smart reviews similar on C++ sets class 1.0 |
|