"tmnet" <cs***@tm.net.my> wrote in message
news:40**********@news.tm.net.my...
Dear all,
Below is the question :
Array manipulations, Class, Exception handling, Generic class.
- design, implement and test a set class in c++ that provides the
operations; set membership, set intersection, set union and set
diferrence. An array is to be used to represent a set within a class.
hope you all can help. thank you.
regards,
Michael
Of course some of us can help.
#include <set>
std::set<WhateverTypeUWant> mySet;
OR
#include <vector> // Some array-like data structure
#include <algorithm> // several set-manipulation algorithms
Now, as for us doing your homework for you... I suggest a data structures
book - preferably in C++ if that is the language you are using (but isn't
necessary). Data structures/algorithms can be a lot of fun - they are very
fundamental to all of computer science - fortunately, they also require some
thought and education on the subject. You won't be getting your degree any
time soon if you have others do such fundamental work for you. Believe it
or not, these types of concepts are used in every aspect of computer
science. The sooner you become educated on them, the better off you will be
here.
-NPC