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

📄 array1.h

📁 最大频繁集挖掘算法GENMAX 源代码
💻 H
字号:
// this file defines the class Array.#ifndef ARRAY1_H #define ARRAY1_H #include <stdlib.h>#include <iostream.h>#include <stdio.h>#include <errno.h>#include <sys/types.h>#include <malloc.h>class Array {friend ostream &operator<< (ostream &, Array &);public:Array(int sz); ~Array();          void set_array(int *ary){ptr = ary;};void set_size(int sz){ thesize = sz;};void set_totsize(int sz){totSize = sz;};void setitem(int pos, int val){ptr[pos] = val;};void reset(){ thesize = 0;};int *get_array(){ return ptr;};unsigned int size() {return thesize;};int totsize(){ return totSize;};int item (int index) {return ptr[index];};// int &support(){ return sup;  } void add(int);int operator[] (unsigned int);//void Quick_Sort();//void qsort1(int, int);bool Ismember(int);bool Isubset(Array *, int);private:   unsigned int totSize;    unsigned int thesize;   int *ptr;    //   int sup;};#endif

⌨️ 快捷键说明

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