Data
Structures
Department)of)Computer)Science)&)Technology,))))))Nanjing)university)))))))fall))!
集合的位向量
(bit Vector)
类的定义
#include <assert.h>
const int DefaultSize = 100;
class Set {
private:
int * bitVector; //
集合的位向量数组
int MaxSize; //
最元素个数
public:
Set ( int MaxSetSize = DefaultSize );
Set ( Set& right );
~Set ( ) { delete [ ] bitVector; }
评论0