choose.h
来自「关联规则挖掘数据产生程序.VISUAL C++ 可产生满足要求的挖掘数据.」· C头文件 代码 · 共 28 行
H
28 行
// Choose.h: interface for the CChoose class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_CHOOSE_H__D40E3860_43D1_42AF_B87A_DEC5CB4E5A6D__INCLUDED_)
#define AFX_CHOOSE_H__D40E3860_43D1_42AF_B87A_DEC5CB4E5A6D__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CChoose
{
public:
CChoose(int n, int k);
~CChoose(void);
int pos(int i) { return num[i]; }; // returns the i-th position
private:
int *num; // list of the positions
float *rval; // random value (used to get random ordering of the items)
};
#endif // !defined(AFX_CHOOSE_H__D40E3860_43D1_42AF_B87A_DEC5CB4E5A6D__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?