|
|
C sets class |
|
|
Category: Education | Size: .014MB | Released: 01/2001
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.
Goto author site
Download freeware
|
|
|
Details
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.
OS Support: Win95
Keywords: sets class c c
|
Screenshot
 Large Image
Report 'bad' software
Related Ads
Link to this page: Are you the software author or a licensed distributor? You can promote your software by simply copying the html text from the textbox below and pasting it onto your website. Start increasing your web traffic now! |
 C sets class
|
|
|
|
|
RSS Feeds (xml)
RSS for category Education
RSS for sets class c c
RSS for c sets class
|
|
|
|
Featured |
Link to your freeware product
Submit new freeware PAD file
Popular Freeware
Popular search results this week:
Comodo Antivirus Comodo AntiVirus Eliminates all known viruses, worms and Trojans. On demand On access scanning, email scanning, process monitoring, worm blocker, scheduling more. It’s easy to use; doesn’t slow down your PC and is free for life to the end user
InfoArmor AntiSpyware InfoArmor Anti Spyware is a security utility that helps protect Windows users from spyware, virus, trojan and other unwanted software. Even UNKNOWN spyware can be prevented. It can also protect your webpages, important files, and folders.
Elite Keylogger Elite Keylogger smart and powerful low core (driver mode) Keylogger engine Elite Keylogger is the best selling surveillance software for monitoring and recording every detail of PC and Internet activity everywhere: in your home or in your office.
Cool Spyware Remover Cool AntiSpyware Easy Remover will remove 100percentage of your spyware, adware, hijackers, keyloggers, unwanted toolbars, dialers, trojan horses and malware or I will give you a free update in 24 hours
Ultimate Spy Killer Ultimate Spy Killer is a program that detects harmful software such as Viruses, Spyware, Adware, SpyBots, Worms, Trojan Horses, Hacker Tools and Keyloggers.
Spyware Vaccine Spyware Vaccine is a spyware scanner, spyware remover, spyware monitor 3 in 1 solution. It keeps spyware activex away from your registry and live monitoring for 30000 spyware .
Blue Spyware Remover Blue Spyware Remover Easy Remover will remove 100percentage of your spyware, adware, hijackers, keyloggers, unwanted toolbars, dialers, trojan horses and malware or I will give you a free update in 24 hours
Spyware Adware Alert SE 2007.5 Spyware Adware Alert SE 2007.5 not only detects and removes adware and Spyware from your system, but it also scrubs your programs to make sure that no harmful remnants are left in your system.
|
.Net Component
|
|
Windows Process Information |
|
|