?? 14iv.h
字號:
#include <iostream.h>
// Adv_Set.h An advanced class for implementation of sets
class Set
{ public: Set (); // default constructor
Set (const Set& s); // deep-copy constructor
~Set (); // destructor
Set operator + (Set s); // union of sets
Set operator + (int n); // insertion of an integer
Set operator - (Set s); // subtraction of sets
Set operator - (int n); // removal of an integer
Set operator & (Set s); // intersection of sets
int IsMember (int n); // test for membership
void Output (ostream& outs); // stream output
Set& operator= (const Set& s); // deep-copy assignment
private:
void Reset(void); // private function to re-initialize a Set
int *members; // a dynamic array
int size;
};
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -