본문내용
class Set
{
private:
int arySize; //maximum size of a set
int currentSize; //current size of a set
int* data; //pointer for data
string set_name; //name of a set
public:
Set();
Set(int asize, string setName);
Set(const Set& copycon);
~Set(){}
void store(int asize, string set_name);
void print();
void add (int element);
void remove(int element);
void sort();
int exist(int element);
friend void union_set(Set &set1, Set &set2);
friend void intersection_set(Set &set1, Set &set2);
friend void difference_of_set(Set &set1, Set &set2);
{
private:
int arySize; //maximum size of a set
int currentSize; //current size of a set
int* data; //pointer for data
string set_name; //name of a set
public:
Set();
Set(int asize, string setName);
Set(const Set& copycon);
~Set(){}
void store(int asize, string set_name);
void print();
void add (int element);
void remove(int element);
void sort();
int exist(int element);
friend void union_set(Set &set1, Set &set2);
friend void intersection_set(Set &set1, Set &set2);
friend void difference_of_set(Set &set1, Set &set2);
소개글