This programme I actually want to search | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

This programme I actually want to search

Design and implement the following class “Set” functionality to perform the following piece of code: (It must be noted that memory allocated by Array should be created at run time according to size and de-allocated by destructors). Total Marks: 100 class Set { private: const int size; int *Array; Set(int sz); ~Set(); void setData(void); void showData(void); Set union(Set Y); Set intersection(Set Y); int main() { // Number of values in the set // It holds the set values specified by size // constructor // destructor // to enter data in the Set according to its size // to display set values according to its size // union of two sets // intersection of two sets public: }; } Set A(5), B(7), C, D; A.setData(); B.setData(); C = A.union(B); D = A.intersection(B); C.showData(); D.showData(); return 0; }

20th Aug 2020, 2:45 AM
jaweria sajjad
jaweria sajjad - avatar
6 Answers
+ 3
Just begin your homework , show it and let us discuss open points.
20th Aug 2020, 5:37 AM
Oma Falk
Oma Falk - avatar
+ 1
I suggest sharing it in code playground, easier to read.
20th Aug 2020, 3:31 AM
Arturop
Arturop - avatar
0
this programme have just hints
20th Aug 2020, 3:00 AM
jaweria sajjad
jaweria sajjad - avatar
0
and we assignd to implement the body of the given functions
20th Aug 2020, 3:01 AM
jaweria sajjad
jaweria sajjad - avatar
0
above given programme is in C++ language
20th Aug 2020, 3:05 AM
jaweria sajjad
jaweria sajjad - avatar
0
can anyone help me in solving the above Program?
20th Aug 2020, 3:06 AM
jaweria sajjad
jaweria sajjad - avatar