?? item.h
字號:
/*---------------------------------------------------------------------- File : Item.h Contents : itemset management Author : Bart Goethals Update : 4/4/2003 ----------------------------------------------------------------------*/#include <set>using namespace std;class Item{public: Item(int i) : id(i), support(0), children(0) {} Item(const Item &i) : id(i.id), support(i.support), children(i.children) {} ~Item(){} int getId() const {return id;} int Increment(int inc = 1) const {return support+=inc;} set<Item> *makeChildren() const; int deleteChildren() const; int getSupport() const {return support;} set<Item> *getChildren() const {return children;} bool operator<(const Item &i) const{return id < i.id;}private: const int id; mutable int support; mutable set<Item> *children;};
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -