摘要: #include<assert.h>#include<iostream>using namespace std;const int DefaultSize = 100;class Set{public: Set(int MaxSize = DefaultSize); //构造函数 ~Set() {delete []bitVector;} //析构函数 void MakeEmpty() //置空集合 { for(int i=0; i<MaxSize; i++) { bitVector[i] = 0; } } bool AddMember(const int x); 阅读全文
posted @ 2009-02-17 20:10 小 楼 一 夜 听 春 雨 阅读(1794) 评论(1) 推荐(0)