⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 garray.h

📁 关联规则中的频繁项集生成算法genmax
💻 H
字号:
#ifndef __GARRAY_H#define __GARRAY_H#include <iostream.h>template <class Items>class GArray{private:   int theSz;   int totSz;   Items *theAry;public:   GArray(int sz=2);   GArray(GArray<Items> *ary);   ~GArray();   void copy (GArray<Items> *ary);   void Realloc(int newlen);   void compact(int nsz=-1);   void add(Items it);   void optadd(Items it){ theAry[theSz++] = it; }   Items *& garray(){ return theAry; }   void reset(){ theSz = 0; }   int& size(){ return theSz; }   int& totsize(){ return totSz; }   Items& operator [] (unsigned int index){ return theAry[index]; }   //friend ostream& operator << (ostream& fout, GArray<Items>& ary);};#endif //__GArray_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -