Click here to Skip to main content
15,888,527 members
Home / Discussions / C#
   

C#

 
GeneralRe: User Input Into Array, Need To Check Array Member If It Is Greater Then 100 Or Less Then 0 Pin
SeMartens9-Sep-09 22:12
SeMartens9-Sep-09 22:12 
GeneralRe: User Input Into Array, Need To Check Array Member If It Is Greater Then 100 Or Less Then 0 Pin
Sivyo9-Sep-09 22:14
Sivyo9-Sep-09 22:14 
GeneralRe: User Input Into Array, Need To Check Array Member If It Is Greater Then 100 Or Less Then 0 Pin
SeMartens9-Sep-09 22:19
SeMartens9-Sep-09 22:19 
GeneralRe: User Input Into Array, Need To Check Array Member If It Is Greater Then 100 Or Less Then 0 Pin
Sivyo9-Sep-09 22:21
Sivyo9-Sep-09 22:21 
GeneralRe: User Input Into Array, Need To Check Array Member If It Is Greater Then 100 Or Less Then 0 Pin
DavodM9-Sep-09 22:33
DavodM9-Sep-09 22:33 
GeneralRe: User Input Into Array, Need To Check Array Member If It Is Greater Then 100 Or Less Then 0 Pin
Sivyo9-Sep-09 22:39
Sivyo9-Sep-09 22:39 
GeneralRe: User Input Into Array, Need To Check Array Member If It Is Greater Then 100 Or Less Then 0 Pin
DavodM9-Sep-09 22:53
DavodM9-Sep-09 22:53 
GeneralRe: User Input Into Array, Need To Check Array Member If It Is Greater Then 100 Or Less Then 0 Pin
Sivyo9-Sep-09 23:05
Sivyo9-Sep-09 23:05 
yea I figured that,

there are two parts, the first part...

Write a class that will be used for creating sets of whole numbers in the range of 0…100. Implement the sets with a Boolean array. Define in the class the following operations:
1. A constructor without parameters, which initialize the set as an empty set.
2. A constructor that gets an array of wholes and creates a set that contains those array members.

9. Override the methods ToString and Equals that inherit from Object in the following way:
10. ToString – will return a string representation of the set.

Part two is where the user comes in

Write a program that checks the sets class in the following way:
• Create 2 sets by drawing 10 random numbers in the range of 0…100 for each set, and display the sets contents.
• Perform intersection and union of the two sets and display the received sets.
• Get from the user 3 numbers and create a third set. Check whether this set is a sub-set of one of the sets and display the result.


I am also having problems that after I create union and intersection, there is only one set and not two and the originals die...

I haven't played around with that yet so not going to ask for help with it yet.
GeneralRe: User Input Into Array, Need To Check Array Member If It Is Greater Then 100 Or Less Then 0 Pin
DavodM9-Sep-09 23:18
DavodM9-Sep-09 23:18 
GeneralRe: User Input Into Array, Need To Check Array Member If It Is Greater Then 100 Or Less Then 0 Pin
Sivyo9-Sep-09 23:23
Sivyo9-Sep-09 23:23 
GeneralRe: User Input Into Array, Need To Check Array Member If It Is Greater Then 100 Or Less Then 0 Pin
Sivyo9-Sep-09 23:12
Sivyo9-Sep-09 23:12 
GeneralRe: User Input Into Array, Need To Check Array Member If It Is Greater Then 100 Or Less Then 0 Pin
DavodM9-Sep-09 23:23
DavodM9-Sep-09 23:23 
GeneralRe: User Input Into Array, Need To Check Array Member If It Is Greater Then 100 Or Less Then 0 Pin
Sivyo9-Sep-09 23:31
Sivyo9-Sep-09 23:31 
GeneralRe: User Input Into Array, Need To Check Array Member If It Is Greater Then 100 Or Less Then 0 Pin
DavodM9-Sep-09 23:35
DavodM9-Sep-09 23:35 
GeneralRe: User Input Into Array, Need To Check Array Member If It Is Greater Then 100 Or Less Then 0 Pin
Sivyo9-Sep-09 23:39
Sivyo9-Sep-09 23:39 
GeneralRe: User Input Into Array, Need To Check Array Member If It Is Greater Then 100 Or Less Then 0 Pin
Sivyo10-Sep-09 12:06
Sivyo10-Sep-09 12:06 
Questioninfo on Evidence class Pin
manustone9-Sep-09 19:59
manustone9-Sep-09 19:59 
AnswerRe: info on Evidence class Pin
SeMartens9-Sep-09 21:28
SeMartens9-Sep-09 21:28 
QuestionHow to access Cache Data Pin
sjs4u9-Sep-09 19:52
sjs4u9-Sep-09 19:52 
AnswerRe: How to access Cache Data Pin
SeMartens9-Sep-09 21:34
SeMartens9-Sep-09 21:34 
GeneralRe: How to access Cache Data Pin
sjs4u9-Sep-09 22:01
sjs4u9-Sep-09 22:01 
Questionwrapper to use C++ library in C# Pin
flyakiteosx9-Sep-09 19:25
flyakiteosx9-Sep-09 19:25 
AnswerRe: wrapper to use C++ library in C# Pin
Sindicoro9-Sep-09 20:35
Sindicoro9-Sep-09 20:35 
GeneralRe: wrapper to use C++ library in C# Pin
flyakiteosx9-Sep-09 22:02
flyakiteosx9-Sep-09 22:02 
GeneralRe: wrapper to use C++ library in C# Pin
DaveyM699-Sep-09 22:14
professionalDaveyM699-Sep-09 22:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.